mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00:00
fw/config: ensure boot/runtime_params are initialized
Ensure that boot and runtime parameters always get initialized to an obj_dict even when not explicitly specified. This will ensure they get serialized and deserialized properly.
This commit is contained in:
parent
85d5d4f7df
commit
d572e5210d
@ -794,6 +794,10 @@ class JobSpec(Configuration):
|
||||
self.to_merge = defaultdict(OrderedDict)
|
||||
self._sources = []
|
||||
self.id = None
|
||||
if self.boot_parameters is None:
|
||||
self.boot_parameters = obj_dict()
|
||||
if self.runtime_parameters is None:
|
||||
self.runtime_parameters = obj_dict()
|
||||
|
||||
def to_pod(self):
|
||||
pod = super(JobSpec, self).to_pod()
|
||||
|
Loading…
x
Reference in New Issue
Block a user