From eed5c910cf9d61b64d8bd8a24bf3edb32087b8be Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 15 Oct 2019 14:31:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=95=B0=E8=99=9A=E6=8B=9F=E7=BB=B4?= =?UTF-8?q?=E5=BA=A6=E8=A1=A8=E5=AF=BC=E5=85=A5=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ops/ss_virtual_create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ops/ss_virtual_create.py b/ops/ss_virtual_create.py index 5a3d55a..978a224 100644 --- a/ops/ss_virtual_create.py +++ b/ops/ss_virtual_create.py @@ -31,7 +31,7 @@ class SS_Virtual_command: body = {"projectId": projectId, "createParam": createParam, "loginName": loginName, "password": password} quote_body = my_quote(body) - cmd = f"curl --header 'Accept: application/json' --form 'file=@{filename}' {self.ss_virtual_url}?{quote_body}" + cmd = f"curl --header 'Accept: application/json' --form 'file=@{filename}' '{self.ss_virtual_url}?{quote_body}'" print(cmd) cmdref = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) output, error_info = cmdref.communicate()