mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] handle failure on 'config/script show'
This commit is contained in:
parent
1c16693cdc
commit
359ef6d3d7
1 changed files with 3 additions and 2 deletions
|
@ -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", []):
|
||||
|
|
Loading…
Add table
Reference in a new issue