Преглед на файлове

Update shell_execute.py

qiaofeng1227 преди 2 години
родител
ревизия
985be7b3c2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      appmanage/api/utils/shell_execute.py

+ 1 - 1
appmanage/api/utils/shell_execute.py

@@ -23,7 +23,7 @@ def execute_command_output_all(cmd_str):
     else:
        myLogger.info_logger("Failed to execute cmd, output failed result")
        myLogger.info_logger(process)
-       raise CommandException(const.ERROR_SERVER_COMMAND,"Docker returns the original error",process)
+       raise CommandException(const.ERROR_SERVER_COMMAND,"Docker returns the original error", str(process))
 
 def convert_command(cmd_str):
     convert_cmd = ""