数数虚拟维度表导入脚本

This commit is contained in:
pengtao 2019-10-15 14:31:49 +08:00
parent ba38245145
commit eed5c910cf

View File

@ -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()