1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 02:01:16 +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:
Sergei Trofimov 2018-03-29 17:54:04 +01:00 committed by Marc Bonnici
parent 85d5d4f7df
commit d572e5210d

View File

@ -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()