From 29420e471811b0abb44c7cec1b491a788b5f84bc Mon Sep 17 00:00:00 2001 From: dongjiao Date: Wed, 17 Jul 2024 10:59:37 +0800 Subject: [PATCH] fix command error --- common/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/command.py b/common/command.py index e8f4149..18c315d 100644 --- a/common/command.py +++ b/common/command.py @@ -56,7 +56,7 @@ class Command: if check_cmd[0] == 'cat' or check_cmd[0] == 'ls': if not os.path.exists(check_cmd[1]): Logger().error("{} does not exist, cmd_run {} unable to execute".format(check_cmd[1], cmd)) - return command_result + return command_result if cmd == "top -b -n 3": env = os.environ.copy() -- Gitee