From ed74ae6654b25477b5d65afd9d45af7192c0a091 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Tue, 10 Apr 2018 09:17:56 +0100 Subject: [PATCH] fw/config: ensure params are obj_dict's As part of finalizing a job spec, ensure all *_parameters are obj_dict's. --- wa/framework/configuration/core.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wa/framework/configuration/core.py b/wa/framework/configuration/core.py index 8581cf5b..da44e314 100644 --- a/wa/framework/configuration/core.py +++ b/wa/framework/configuration/core.py @@ -865,6 +865,12 @@ class JobSpec(Configuration): def finalize(self): self.id = "-".join([source.config['id'] for source in self._sources[1:]]) # ignore first id, "global" + + # ensure *_parameters are always obj_dict's + self.boot_parameters = obj_dict((self.boot_parameters or {}).items()) + self.runtime_parameters = obj_dict((self.runtime_parameters or {}).items()) + self.workload_parameters = obj_dict((self.workload_parameters or {}).items()) + if self.label is None: self.label = self.workload_name