diff options
-rw-r--r-- | src/lib/Server/Core.py | 2 | ||||
-rw-r--r-- | src/lib/Server/Metadata.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py index 379a68700..ba122bc46 100644 --- a/src/lib/Server/Core.py +++ b/src/lib/Server/Core.py @@ -113,7 +113,7 @@ class Core(object): [z.Construct(metadata) for z in self.structures]) def BindStructure(self, structure, metadata): - for entry in [x in structure.getchildren() if x.tag not in ['SymLink','Directory']]: + for entry in [x for x in structure.getchildren() if x.tag not in ['SymLink','Directory']]: try: self.Bind(entry, metadata) except KeyError, k: diff --git a/src/lib/Server/Metadata.py b/src/lib/Server/Metadata.py index bc012d116..feb5bbd14 100644 --- a/src/lib/Server/Metadata.py +++ b/src/lib/Server/Metadata.py @@ -88,7 +88,7 @@ class MetadataStore(SingleXMLFileBacked): self.WriteBack() p = self.profiles[profile] # should we uniq here? V - bundles = reduce(lambda x, y:x + y, [self.classes.get[x] for x in p.classes]) + bundles = reduce(lambda x, y:x + y, [self.classes.get(x) for x in p.classes]) return Metadata(False, image, p.classes, bundles, p.attributes, client) def WriteBack(self): |