diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2016-06-27 18:03:58 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2016-06-27 18:04:36 -0500 |
commit | a4f7d6c684931d934ac0dce6fdf7dcdfd7fef8c2 (patch) | |
tree | e9a2491708e7e8a9c46f52a1cdfd03bd9b9b6259 /ci/deploy.py | |
parent | b58f01b1b21427d16bc9a991704884ef7421cc90 (diff) |
checking if parameter is no null.
Change-Id: Id3d908903ddb4584e0c813aa6dc8f859c3004ba7
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/deploy.py')
-rw-r--r-- | ci/deploy.py | 5 |
1 files changed, 4 insertions, 1 deletions
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) |