diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2005-11-29 20:00:54 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2005-11-29 20:00:54 +0000 |
commit | d25eb75b8f634e8122245c37a144ad7be9006a5c (patch) | |
tree | 9f7f91fa4c7fb6695bb887815e5f1bea361035c8 /src/lib/Server/Plugins/Account.py | |
parent | e21b0256cb03b6f44e6dd216efad7925cbd0e75a (diff) | |
download | bcfg2-d25eb75b8f634e8122245c37a144ad7be9006a5c.tar.gz bcfg2-d25eb75b8f634e8122245c37a144ad7be9006a5c.tar.bz2 bcfg2-d25eb75b8f634e8122245c37a144ad7be9006a5c.zip |
fix lxml brokenness
(Logical change 1.372)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1568 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins/Account.py')
-rw-r--r-- | src/lib/Server/Plugins/Account.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/Server/Plugins/Account.py b/src/lib/Server/Plugins/Account.py index d728566a4..7368f74e7 100644 --- a/src/lib/Server/Plugins/Account.py +++ b/src/lib/Server/Plugins/Account.py @@ -50,12 +50,10 @@ class Account(Plugin): def gen_root_keys_cb(self, entry, metadata): '''Build root authorized keys file based on current ACLs''' - entry.text = '' superusers = self.repository.entries['superusers'].data.split() rootlike = [line.split(':', 1) for line in self.repository.entries['rootlike'].data.split()] superusers += [user for (user, host) in rootlike if host == metadata.hostname.split('.')[0]] - for user in superusers: - if self.repository.entries.has_key("%s.key" % user): - entry.text += self.repository.entries["%s.key" % user].data + rdata = self.repository.entries + entry.text = "".join([rdata[user] for user in superusers if rdata.has_key(user)]) perms = {'owner':'root', 'group':'root', 'perms':'0600'} [entry.attrib.__setitem__(key, value) for (key, value) in perms.iteritems()] |