summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-07-20 15:44:29 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-07-20 15:44:29 +0000
commit39f0c71d5ab8b0c70dc0b664b110841c338f7a66 (patch)
tree56e2e4fa17feaa5f62e4ca4b07425c926d9ee996 /src/lib
parentf11e28fd9e94e8e0e4c2640643d9405fd8731b8b (diff)
downloadbcfg2-39f0c71d5ab8b0c70dc0b664b110841c338f7a66.tar.gz
bcfg2-39f0c71d5ab8b0c70dc0b664b110841c338f7a66.tar.bz2
bcfg2-39f0c71d5ab8b0c70dc0b664b110841c338f7a66.zip
Fix altsrc
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3521 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Core.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py
index a1061cf08..c24bc6948 100644
--- a/src/lib/Server/Core.py
+++ b/src/lib/Server/Core.py
@@ -275,8 +275,10 @@ class Core(object):
'''Bind an entry using the appropriate generator'''
if 'altsrc' in entry.attrib:
oldname = entry.get('name')
+ entry.set('name', entry.get('altsrc'))
+ del entry.attrib['altsrc']
try:
- ret = self.Bind(self, entry, metadata)
+ ret = self.Bind(entry, metadata)
entry.set('name', oldname)
return ret
except: