Fix in task

This commit is contained in:
Antonio de la Rosa 2024-09-04 22:57:35 +02:00
parent eca40523d0
commit 7718ec986a

View file

@ -108,6 +108,9 @@ class Task:
#self.ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
# Check if in known_hosts
self.logtask.insert({'task_id': self.id, 'progress': 0, 'message': I18n.lang('pastafari', 'pre_tasks', 'Begin connection to the server...'), 'error': 0, 'status': 0, 'server': self.server})
check_ssh_host= paramiko.hostkeys.HostKeys()
if not os.path.isfile(self.config.ssh_directory+'/known_hosts'):