|
|
|
|
@ -167,10 +167,12 @@ class UpdateConfigUtil: |
|
|
|
|
for config_item in all_config_obj: |
|
|
|
|
if config_item['id'] in self.checked_list: |
|
|
|
|
cmd_list.append({"desc": config_item['desc'], |
|
|
|
|
"cmd": json.loads(config_item['command'])['checked'].replace('<params>', param), |
|
|
|
|
"cmd": [cmd.replace('<params>', param) for cmd in |
|
|
|
|
json.loads(config_item['command'])['checked']], |
|
|
|
|
"combo_cmd": config_item['combo_cmd']}) |
|
|
|
|
else: |
|
|
|
|
cmd_list.append({"desc": config_item['desc'], |
|
|
|
|
"cmd": json.loads(config_item['command'])['unchecked'].replace('<params>', param), |
|
|
|
|
"cmd": [cmd.replace('<params>', param) for cmd in |
|
|
|
|
json.loads(config_item['command'])['unchecked']], |
|
|
|
|
"combo_cmd": config_item['combo_cmd']}) |
|
|
|
|
return cmd_list |
|
|
|
|
|