Additional fix for bug 733 05/7605/1
authorAdam Israel <adam.israel@canonical.com>
Tue, 4 Jun 2019 12:30:51 +0000 (08:30 -0400)
committerAdam Israel <adam.israel@canonical.com>
Tue, 4 Jun 2019 12:30:51 +0000 (08:30 -0400)
An additional fix for bug 733

Change-Id: I0b6d82f7ba8030f28e82a3d68e249fbcb299979c

n2vc/vnf.py

index 1ad6d06..bb7b871 100644 (file)
@@ -341,7 +341,7 @@ class N2VC:
         for cfg in configs:
             if 'juju' in cfg:
                 juju = cfg['juju']
-                if 'relation' in juju:
+                if 'vca-relations' in juju and 'relations' in juju['vca-relations']:
                     for rel in juju['vca-relations']['relation']:
                         try: