1
0
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:
Adolfo Gómez García 2015-05-21 07:23:18 +02:00
parent df498dd5bc
commit 8d4f60b0fb
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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()