Fix in task
This commit is contained in:
parent
eca40523d0
commit
7718ec986a
1 changed files with 3 additions and 0 deletions
|
|
@ -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'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue