summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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]