mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-21 09:34:08 +03:00
Fixed a couple things for Linux random password
This commit is contained in:
parent
df498dd5bc
commit
8d4f60b0fb
@ -177,7 +177,7 @@ class CommonService(object):
|
||||
except REST.UserServiceNotFoundError:
|
||||
logger.error('The host has lost the sync state with broker! (host uuid changed?)')
|
||||
return False
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
if counter % 60 == 0:
|
||||
logger.warn('Too many retries in progress, though still trying (last error: {})'.format(exceptionToMessage(e)))
|
||||
counter += 1
|
||||
|
@ -85,10 +85,10 @@ class LinuxRandomPassManager(LinuxOsManager):
|
||||
return randomPass
|
||||
|
||||
def infoVal(self, service):
|
||||
return 'rename:{0}\t{1}\t{3}'.format(self.getName(service), self._userAccount, self.genPassword(service))
|
||||
return 'rename:{0}\t{1}\t\t{3}'.format(self.getName(service), self._userAccount, self.genPassword(service))
|
||||
|
||||
def infoValue(self, service):
|
||||
return 'rename\r{0}\t{1}\t{3}'.format(self.getName(service), self._userAccount, self.genPassword(service))
|
||||
return 'rename\r{0}\t{1}\t\t{3}'.format(self.getName(service), self._userAccount, self.genPassword(service))
|
||||
|
||||
def marshal(self):
|
||||
base = super(LinuxRandomPassManager, self).marshal()
|
||||
|
Loading…
Reference in New Issue
Block a user