Ver Fonte

Merge pull request #7203 from mgugino-upstream-stage/fix-master-fact

Change openshift.common.hostname to inventory_hostname
Michael Gugino há 7 anos atrás
pai
commit
6728971c3a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      playbooks/openshift-master/private/config.yml

+ 1 - 1
playbooks/openshift-master/private/config.yml

@@ -30,7 +30,7 @@
   # masters, or absent if such is the case.
   - name: Detect if this host is a new master in a scale up
     set_fact:
-      g_openshift_master_is_scaleup: "{{ openshift.common.hostname in ( groups['new_masters'] | default([]) ) }}"
+      g_openshift_master_is_scaleup: "{{ inventory_hostname in ( groups['new_masters'] | default([]) ) }}"
 
   - name: Scaleup Detection
     debug: