diff options
author | Sergei Trofimov <sergei.trofimov@arm.com> | 2018-07-11 10:58:34 +0100 |
---|---|---|
committer | Marc Bonnici <marc.bonnici@arm.com> | 2018-07-11 13:28:04 +0100 |
commit | 7755363efd3cdc916c2d0f39404b1960c1762140 (patch) | |
tree | b7fd6e197cbc6b35e21934701fb54a5767b6e819 /wa/framework | |
parent | bcea1bd0aff7be1294855952cf8adddcf1f7fa32 (diff) |
fw/config: add get_config() to ConfigManager
Add a method to allow obtaining the combined config after config
manager has been finalized.
Diffstat (limited to 'wa/framework')
-rw-r--r-- | wa/framework/configuration/execution.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wa/framework/configuration/execution.py b/wa/framework/configuration/execution.py index 259c21c4..44ae5a17 100644 --- a/wa/framework/configuration/execution.py +++ b/wa/framework/configuration/execution.py @@ -122,12 +122,15 @@ class ConfigManager(object): processors.append(proc) return processors + def get_config(self): + return CombinedConfig(self.settings, self.run_config) + def finalize(self): if not self.agenda: msg = 'Attempting to finalize config before agenda has been set' raise RuntimeError(msg) self.run_config.merge_device_config(self.plugin_cache) - return CombinedConfig(self.settings, self.run_config) + return self.get_config() def generate_jobs(self, context): job_specs = self.jobs_config.generate_job_specs(context.tm) |