diff options
-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) |