Skip to content

Commit

Permalink
bug fix deploy ssh -p
Browse files Browse the repository at this point in the history
  • Loading branch information
guohongze committed Nov 27, 2018
1 parent f76f0bc commit 582b01b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion delivery/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def deploy(job_name, server_list, app_path, source_address, project_id, auth_inf
data = cmd_exec(cmd)
with open(log_path + log_name, 'ab+') as f:
f.writelines(data)
cmd = "ssh -P {3} {2}@{1} '/bin/bash /tmp/{0}'".format(deploy_shell_name, server, username, deploy_port)
cmd = "ssh -p {3} {2}@{1} '/bin/bash /tmp/{0}'".format(deploy_shell_name, server, username, deploy_port)
data = cmd_exec(cmd)
with open(log_path + log_name, 'ab+') as f:
f.writelines(data)
Expand Down

0 comments on commit 582b01b

Please sign in to comment.