mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 07:04:17 +00:00 
			
		
		
		
	proc/sqlite: fix writing runtime/boot_params
Make sure runtime_params and boot_params are to_pod()'d when they get written, as they are obj_dict's that json serializer does not know how to handle otherwise.
This commit is contained in:
		
				
					committed by
					
						 Marc Bonnici
						Marc Bonnici
					
				
			
			
				
	
			
			
			
						parent
						
							d572e5210d
						
					
				
				
					commit
					723b24306b
				
			| @@ -190,7 +190,8 @@ class SqliteResultProcessor(OutputProcessor): | ||||
|     def _update_spec(self, spec): | ||||
|         self._last_spec = spec | ||||
|         spec_tuple = (spec.id, self._run_oid, spec.iterations, spec.label, spec.workload_name, | ||||
|                       json.dumps(spec.boot_parameters), json.dumps(spec.runtime_parameters), | ||||
|                       json.dumps(spec.boot_parameters.to_pod()), | ||||
|                       json.dumps(spec.runtime_parameters.to_pod()), | ||||
|                       json.dumps(spec.workload_parameters.to_pod())) | ||||
|         with self._open_connecton() as conn: | ||||
|             conn.execute('INSERT INTO workload_specs VALUES (?,?,?,?,?,?,?,?)', spec_tuple) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user