1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-02-02 09:47:13 +03:00

Fixed info on model utils

Added "allow_agent=False" to forwarded connection of UDS client
This commit is contained in:
Adolfo Gómez García 2020-09-10 13:53:05 +02:00
parent 78129c9569
commit 9e77934136
2 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,8 @@ class ForwardThread(threading.Thread):
logger.debug('Connecting to ssh host %s:%d ...', self.server, self.port)
self.client.connect(self.server, self.port, username=self.username, password=self.password, timeout=5)
# To disable ssh-ageng asking for passwords: allow_agent=False
self.client.connect(self.server, self.port, username=self.username, password=self.password, timeout=5, allow_agent=False)
except Exception:
logger.exception('Exception connecting: ')
self.status = 2 # Error

View File

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# Copyright (c) 2012-2019 Virtual Cable S.L.
# Copyright (c) 2012-2020 Virtual Cable S.L.U.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
@ -52,7 +52,6 @@ class UnsavedForeignKey(models.ForeignKey):
# Allows pointing to an unsaved object
allow_unsaved_instance_assignment = True
def getSqlDatetime() -> datetime:
"""
Returns the current date/time of the database server.