Browse Source

Update shell_execute.py

qiaofeng1227 2 năm trước cách đây
mục cha
commit
115eff13e8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      appmanage/api/utils/shell_execute.py

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

@@ -28,6 +28,6 @@ def convert_command(cmd_str):
     if cmd_str == "":
        convert_cmd=cmd_str
     else:
-       convert_cmd="f'nsenter -m -u -i -n -p -t 1 sh -c " +cmd_str
+       convert_cmd="f nsenter -m -u -i -n -p -t 1 sh -c " +cmd_str
 
     return convert_cmd