1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-10 01:17:59 +03:00

Fix for very very weird situation (invalid argument in case no OS was

detected...)
This commit is contained in:
Adolfo Gómez García 2017-02-27 08:11:46 +01:00
parent c6dd782150
commit 170319f871
2 changed files with 2 additions and 2 deletions

View File

@ -202,6 +202,6 @@ class NXTransport(Transport):
}.get(os['OS'])
if os is None:
return super(NXTransport, self).getUDSTransportScript(self, userService, transport, ip, os, user, password, request)
return super(self.__class__, self).getUDSTransportScript(userService, transport, ip, os, user, password, request)
return self.getScript('scripts/{}/direct.py'.format(os)).format(r=r)

View File

@ -237,7 +237,7 @@ class TSNXTransport(Transport):
}.get(os['OS'])
if os is None:
return super(TSNXTransport, self).getUDSTransportScript(self, userService, transport, ip, os, user, password, request)
return super(self.__class__, self).getUDSTransportScript(userService, transport, ip, os, user, password, request)
return self.getScript('scripts/{}/tunnel.py'.format(os)).format(
r=r,