Fixes for support different ssh ports to 22
This commit is contained in:
parent
7c1b903d44
commit
05d8824d6f
9 changed files with 20 additions and 19 deletions
|
|
@ -257,8 +257,8 @@ def pastafari2_add_server_task():
|
|||
with SSHTask(server_host, db, remote_user=server_username, remote_password=server_password, private_key=private_key, remote_path=remote_path, task_id=task_id, data=data, port=ssh_port) as ssh_task:
|
||||
if not ssh_task.prepare_connection():
|
||||
error=1
|
||||
txt_error=I18n.lang('pastafari2', 'error_connection', 'Error: cannot connect to server')
|
||||
error_form['#server_host_error']=I18n.lang('pastafari2', 'error_connection', 'Error: cannot connect to server')
|
||||
txt_error=ssh_task.txt_error #I18n.lang('pastafari2', 'error_connection', 'Error: cannot connect to server')
|
||||
error_form['#server_host_error']=txt_error #I18n.lang('pastafari2', 'error_connection', 'Error: cannot connect to server')
|
||||
else:
|
||||
# Prepare task for install monit
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue