Fix interfaces added logic error
Fix a bug that prevents the mapper from correctly processing
an interfaces added signal when the interface is added to an
object that already has interfaces that have been processed.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I1a9045c14d1d8b70151a8f5cc95eb18dbb20c79f
diff --git a/obmc/mapper/server.py b/obmc/mapper/server.py
index dc125a6..18f50c1 100644
--- a/obmc/mapper/server.py
+++ b/obmc/mapper/server.py
@@ -323,7 +323,7 @@
cache_entry = self.cache_get(path)
old = self.interfaces_get(cache_entry, owner)
new = list(set(interfaces).union(old))
- new = {x: iprops[x] for x in new}
+ new = {x: iprops.get(x, {}) for x in new}
self.update_interfaces(path, owner, old, new)
else:
self.defer_signal(