Commit f8f33d5d authored by 金凯强's avatar 金凯强 🎨

修改上传参数

parent c00e1cf4
......@@ -74,6 +74,6 @@ if __name__ == '__main__':
# res = requests.get('http://localhost:5000/upgrade/rollback/1238022723059486720/')
# print(json.dumps(res.json(), indent=4))
# 远程升级
res = requests.get('http://localhost:5000/upgrade/remote/')
print(json.dumps(res.json(), indent=4))
# # 远程升级
# res = requests.get('http://localhost:5000/upgrade/remote/')
# print(json.dumps(res.json(), indent=4))
......@@ -48,7 +48,7 @@ class SSHConnect():
:param target_path: 目标文件路径
"""
sftp = paramiko.SFTPClient.from_transport(self.ssh.get_transport())
sftp.put(local_path, target_path, confirm=False)
sftp.put(local_path, target_path)
def download(self, remote_path, local_path):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment