[enh] handle failure on 'config/script show'

This commit is contained in:
Laurent Peuch 2018-06-09 23:21:09 +02:00
parent 1c16693cdc
commit 359ef6d3d7

View file

@ -1402,14 +1402,15 @@ def app_config_show_panel(app_id):
print "in parse_stdout", parsed_values
print [line]
hook_exec(config_script,
return_code = hook_exec(config_script,
args=["show"],
env=env,
user="root",
stdout_callback=parse_stdout,
)
# logger.debug("Env after running config script %s", env)
if return_code != 0:
raise Exception("script/config show return value code: %s (considered as an error)", return_code)
logger.debug("Generating global variables:")
for tab in config_panel.get("panel", []):