Fix bug with blueprint detection
Change-Id: I6e01b228a8bc74937da36ce5574875e5e3049822
diff --git a/xos/synchronizer/steps/sync_vspgwutenant.py b/xos/synchronizer/steps/sync_vspgwutenant.py
index f56988d..f557e45 100644
--- a/xos/synchronizer/steps/sync_vspgwutenant.py
+++ b/xos/synchronizer/steps/sync_vspgwutenant.py
@@ -213,11 +213,17 @@
blueprint = next(
b for b in blueprints if b['name'] == blueprint_name)
node = next(n for n in blueprint['graph'] if n['name'] == o.leaf_model_name)
- for link in node['links']:
+
+ try:
+ links = node['links']
+ except KeyError:
+ links = []
+
+ for link in links:
flag = self.has_instance(link['name'], o)
if not flag:
self.defer_sync('%s does not have an instance. Deferring synchronization.'%link['name'])
-
+
def get_blueprint_and_check_dependencies(self, o):
blueprints = Config().get('blueprints')