mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-30 06:34:13 +00:00 
			
		
		
		
	fw/config: add get_config() to ConfigManager
Add a method to allow obtaining the combined config after config manager has been finalized.
This commit is contained in:
		
				
					committed by
					
						 Marc Bonnici
						Marc Bonnici
					
				
			
			
				
	
			
			
			
						parent
						
							bcea1bd0af
						
					
				
				
					commit
					7755363efd
				
			| @@ -122,12 +122,15 @@ class ConfigManager(object): | |||||||
|             processors.append(proc) |             processors.append(proc) | ||||||
|         return processors |         return processors | ||||||
|  |  | ||||||
|  |     def get_config(self): | ||||||
|  |         return CombinedConfig(self.settings, self.run_config) | ||||||
|  |  | ||||||
|     def finalize(self): |     def finalize(self): | ||||||
|         if not self.agenda: |         if not self.agenda: | ||||||
|             msg = 'Attempting to finalize config before agenda has been set' |             msg = 'Attempting to finalize config before agenda has been set' | ||||||
|             raise RuntimeError(msg) |             raise RuntimeError(msg) | ||||||
|         self.run_config.merge_device_config(self.plugin_cache) |         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): |     def generate_jobs(self, context): | ||||||
|         job_specs = self.jobs_config.generate_job_specs(context.tm) |         job_specs = self.jobs_config.generate_job_specs(context.tm) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user