X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=accounts.py;h=8363e7ff92a88ccfaa7ae603580f35e4bcdf5e8e;hb=114082fb689c7b39d66c1041df0256120321fca6;hp=5066b9e65dcdad1f814dfe9438bc4179a3f0d716;hpb=af198e0763c05705ba87a1753209b17df38e3f69;p=nodemanager.git diff --git a/accounts.py b/accounts.py index 5066b9e..8363e7f 100644 --- a/accounts.py +++ b/accounts.py @@ -74,7 +74,7 @@ class Account: dot_ssh = '/home/%s/.ssh' % self.name def do_installation(): if not os.access(dot_ssh, os.F_OK): os.mkdir(dot_ssh) - tools.write_file(dot_ssh + '/authorized_keys', lambda f: f.write(keys)) + tools.write_file(dot_ssh + '/authorized_keys', lambda f: f.write(new_keys)) logger.log('%s: installing ssh keys' % self.name) tools.fork_as(self.name, do_installation) @@ -108,7 +108,7 @@ class Worker: self._create_sem.acquire() try: next_class.create(self.name) finally: self._create_sem.release() - if not isinstance(self._acct, next_class): self._acct = next_class(self.name, rec) + if not isinstance(self._acct, next_class): self._acct = next_class(rec) else: self._acct.configure(rec) if next_class != curr_class: self._acct.start()