From f8f1b59b7b99bda87d6c72639afa6436b1a1be8b Mon Sep 17 00:00:00 2001 From: lu-meihong Date: Sat, 16 Feb 2019 00:59:30 -0800 Subject: [PATCH] The script name displayed is separated by spaces when the exec job is abnormal; such as,when i execute 'freezer-agent --action exec --command /home/backup.sh', reported error:while executing script / h o m e / b a c k u p . s h return code was 1 instead of 0 Change-Id: Iea2f04af8672b3abd4f684b7cb5120a9e1b77cf9 --- freezer/utils/exec_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freezer/utils/exec_cmd.py b/freezer/utils/exec_cmd.py index 0a5e07dd..ac5b7c08 100644 --- a/freezer/utils/exec_cmd.py +++ b/freezer/utils/exec_cmd.py @@ -49,5 +49,5 @@ def popen_call(sub_cmd, input, is_last_process): if rc != 0: raise Exception('Error: while executing script ' '%s return code was %d instead of 0' - % (' '.join(sub_cmd), rc)) + % (''.join(sub_cmd), rc)) return process