소스 검색

aoi: Safer check for master_routingconfig_subdomain

Samuel Munilla 9 년 전
부모
커밋
abed216e09
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      utils/src/ooinstall/openshift_ansible.py

+ 1 - 1
utils/src/ooinstall/openshift_ansible.py

@@ -114,7 +114,7 @@ def write_inventory_vars(base_inventory, multiple_masters, proxy):
         base_inventory.write('openshift_master_cluster_method=native\n')
         base_inventory.write("openshift_master_cluster_hostname={}\n".format(proxy.hostname))
         base_inventory.write("openshift_master_cluster_public_hostname={}\n".format(proxy.public_hostname))
-    if CFG.settings['master_routingconfig_subdomain']:
+    if CFG.settings.get('master_routingconfig_subdomain', False):
         base_inventory.write("osm_default_subdomain={}\n".format(CFG.settings['master_routingconfig_subdomain']))