summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-10-13 18:55:00 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-10-13 18:55:00 +0000
commit49f5f9d9710ff9c1c2b845df5ce2013f079a95ed (patch)
tree7399f6bbc6f15534bf5f4c0eea6c9653e6f6e772 /src/lib/Server/Plugins
parent7d6d7748e1083e388af73180f914aa1464e755d2 (diff)
downloadbcfg2-49f5f9d9710ff9c1c2b845df5ce2013f079a95ed.tar.gz
bcfg2-49f5f9d9710ff9c1c2b845df5ce2013f079a95ed.tar.bz2
bcfg2-49f5f9d9710ff9c1c2b845df5ce2013f079a95ed.zip
stray problem caused by fqdn switch
(Logical change 1.336) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1380 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins')
-rw-r--r--src/lib/Server/Plugins/Account.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Account.py b/src/lib/Server/Plugins/Account.py
index 3f045cb30..42a2e780a 100644
--- a/src/lib/Server/Plugins/Account.py
+++ b/src/lib/Server/Plugins/Account.py
@@ -51,7 +51,7 @@ class Account(Plugin):
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]
+ 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