Fixes in tasks and updates

This commit is contained in:
absurdo 2023-11-27 01:38:54 +01:00
parent 9efdb38e0e
commit 8e693ae7b6
2 changed files with 14 additions and 4 deletions

View file

@ -336,8 +336,9 @@ def task(task_id):
remote_password=arr_task['password']
private_key=arr_task['ssh_key_priv']
password_key=arr_task.get('ssh_key_password', '')
port=arr_task.get('ssh_port', 22)
final_task=ssh_task.ServerTask(server, conn, remote_user=remote_user, remote_password=remote_password, private_key=private_key, password_key=password_key, remote_path='pastafari2', task_id=task_id, data=json.loads(arr_task['data']))
final_task=ssh_task.ServerTask(server, conn, remote_user=remote_user, remote_password=remote_password, private_key=private_key, password_key=password_key, remote_path='pastafari2', task_id=task_id, data=json.loads(arr_task['data']), port=port)
final_task.exec()