Procházet zdrojové kódy

Fix hostname check failure message

This commit ensures undefined error is not thrown when
openshift_hostname is not defined.

Fixes: https://github.com/openshift/openshift-ansible/issues/8738
Michael Gugino před 6 roky
rodič
revize
69013027c8
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      playbooks/init/validate_hostnames.yml

+ 1 - 1
playbooks/init/validate_hostnames.yml

@@ -18,7 +18,7 @@
         openshift_hostname variable to a hostname that when resolved on the host
         openshift_hostname variable to a hostname that when resolved on the host
         in question resolves to an IP address matching an interface on this host.
         in question resolves to an IP address matching an interface on this host.
         This will ensure proper functionality of OpenShift networking features.
         This will ensure proper functionality of OpenShift networking features.
-        Inventory setting: openshift_hostname={{ openshift_hostname }}
+        Inventory setting: openshift_hostname={{ openshift_hostname | default ('undefined') }}
         This check can be overridden by setting openshift_hostname_check=false in
         This check can be overridden by setting openshift_hostname_check=false in
         the inventory.
         the inventory.
         See https://docs.openshift.org/latest/install_config/install/advanced_install.html#configuring-host-variables
         See https://docs.openshift.org/latest/install_config/install/advanced_install.html#configuring-host-variables