Change-Id: Id3d908903ddb4584e0c813aa6dc8f859c3004ba7
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
opnfvlabcfg["opnfv"]["ext-port"]=labcfg["lab"]["racks"][0]["ext-port"]
opnfvlabcfg["opnfv"]["ceph-disk"]=labcfg["opnfv"]["storage"][0]["disk"]
opnfvlabcfg["opnfv"]["interface-enable"]=",".join(list(set(ifnamelist)))
-opnfvlabcfg["opnfv"]["os-domain-name"] = labcfg["lab"]["racks"][0]["osdomainname"]
+
+osdomname = labcfg["lab"]["racks"][0]["osdomainname"]
+if osdomname:
+ opnfvlabcfg["opnfv"]["os-domain-name"] = labcfg["lab"]["racks"][0]["osdomainname"]
with open('deployment.yaml', 'wa') as opnfvf:
yaml.dump(opnfvcfg, opnfvf, default_flow_style=False)