summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2004-09-28 21:45:02 +0000
committerNarayan Desai <desai@mcs.anl.gov>2004-09-28 21:45:02 +0000
commit5f4d8bc458c618ef715f1ccc6a2971e216cb79c3 (patch)
tree916ae006d50a3f6bd98286e8b1b0d825a425de00 /src/lib/Server
parent923dfe15ebc30164d973801d69ee366d2a452b49 (diff)
downloadbcfg2-5f4d8bc458c618ef715f1ccc6a2971e216cb79c3.tar.gz
bcfg2-5f4d8bc458c618ef715f1ccc6a2971e216cb79c3.tar.bz2
bcfg2-5f4d8bc458c618ef715f1ccc6a2971e216cb79c3.zip
add default case for hosts
(Logical change 1.62) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@335 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server')
-rw-r--r--src/lib/Server/Structures/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Structures/base.py b/src/lib/Server/Structures/base.py
index 67d7da48a..be1caa581 100644
--- a/src/lib/Server/Structures/base.py
+++ b/src/lib/Server/Structures/base.py
@@ -26,7 +26,7 @@ class BaseFile(SingleXMLFileBacked):
for c in metadata.classes:
for entry in self.store['Class'].get(c, []):
r.append(deepcopy(entry))
- for entry in self.store['Host'].get(metadata.hostname):
+ for entry in self.store['Host'].get(metadata.hostname, []):
r.append(deepcopy(entry))
return [r]