From e6c58ce584d1c0e884d59d9aaf56137031ca7487 Mon Sep 17 00:00:00 2001 From: tierno Date: Wed, 14 Sep 2016 16:02:49 +0200 Subject: [PATCH] fix bug parsing instance-scenario-create descriptor Change-Id: Ib4541d1ea63f8f2b896b446ac44ad63e2db019af Signed-off-by: tierno --- nfvo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfvo.py b/nfvo.py index da2cfa07..4da9f554 100644 --- a/nfvo.py +++ b/nfvo.py @@ -1727,7 +1727,7 @@ def create_instance(mydb, tenant_id, instance_dict): ipprofile['dhcp_count'] = ipprofile['dhcp'].get('count',None) del ipprofile['dhcp'] update(scenario_net['ip_profile'],ipprofile) - for interface in net_instance_desc['interfaces']: + for interface in net_instance_desc.get('interfaces', () ): if 'ip_address' in interface: for vnf in scenarioDict['vnfs']: if interface['vnf'] == vnf['name']: -- 2.25.1