mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
fw/DatabaseOutput: Only attempt to extract config if avaliable
Do not try to parse `kernel_config` if no data is present.
This commit is contained in:
parent
0ff6b4842a
commit
4bb1f4988f
@ -948,6 +948,7 @@ class DatabaseOutput(Output):
|
|||||||
|
|
||||||
def kernel_config_from_db(raw):
|
def kernel_config_from_db(raw):
|
||||||
kernel_config = {}
|
kernel_config = {}
|
||||||
|
if raw:
|
||||||
for k, v in zip(raw[0], raw[1]):
|
for k, v in zip(raw[0], raw[1]):
|
||||||
kernel_config[k] = v
|
kernel_config[k] = v
|
||||||
return kernel_config
|
return kernel_config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user