diff options
author | Andrew Brestick <brestick@mcs.anl.gov> | 2008-06-26 18:56:15 +0000 |
---|---|---|
committer | Andrew Brestick <brestick@mcs.anl.gov> | 2008-06-26 18:56:15 +0000 |
commit | ba259ca4de0b77e20c5e8e948119b2ac98bd385a (patch) | |
tree | 0fc2966f97de158d1680eee6ffcdabc565aebfd2 /src/lib/Server/Admin | |
parent | a208e0eb1b2ff91191f58eb0ffcac8cc36d3dec5 (diff) | |
download | bcfg2-ba259ca4de0b77e20c5e8e948119b2ac98bd385a.tar.gz bcfg2-ba259ca4de0b77e20c5e8e948119b2ac98bd385a.tar.bz2 bcfg2-ba259ca4de0b77e20c5e8e948119b2ac98bd385a.zip |
fix alias issues in metadata plugin and in bcfg2-admin client mode
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4721 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Admin')
-rw-r--r-- | src/lib/Server/Admin/Client.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Server/Admin/Client.py b/src/lib/Server/Admin/Client.py index c4f931350..618e5b826 100644 --- a/src/lib/Server/Admin/Client.py +++ b/src/lib/Server/Admin/Client.py @@ -72,4 +72,7 @@ class Client(Bcfg2.Server.Admin.Mode): for node in self.root: if node.attrib["name"] == client: return node + for child in node: + if child.tag == "Alias" and child.attrib["name"] == client: + return node return None |