From: Narinder Gupta Date: Mon, 27 Jun 2016 23:03:58 +0000 (-0500) Subject: checking if parameter is no null. X-Git-Tag: colorado.1.0~119 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=a4f7d6c684931d934ac0dce6fdf7dcdfd7fef8c2;p=joid.git checking if parameter is no null. Change-Id: Id3d908903ddb4584e0c813aa6dc8f859c3004ba7 Signed-off-by: Narinder Gupta --- diff --git a/ci/deploy.py b/ci/deploy.py index 3ec50dca..5f84da42 100644 --- a/ci/deploy.py +++ b/ci/deploy.py @@ -215,7 +215,10 @@ opnfvlabcfg["opnfv"]["floating-ip-range"]=labcfg["lab"]["racks"][0]["floating-ip 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)