Pārlūkot izejas kodu

Change openshift.common.hostname to inventory_hostname

This commit corrects possible wrong behavior and
removes relianace on unnecessary openshift_facts
in favor of inventory_hostname.
Michael Gugino 7 gadi atpakaļ
vecāks
revīzija
b6443a7808
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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: