Procházet zdrojové kódy

Add 'unknown' to possible output for the is-active check.

Andrew Butcher před 9 roky
rodič
revize
5273611da6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      playbooks/common/openshift-master/restart.yml

+ 1 - 1
playbooks/common/openshift-master/restart.yml

@@ -74,7 +74,7 @@
       systemctl is-active {{ openshift.common.service_type }}-master
       systemctl is-active {{ openshift.common.service_type }}-master
     register: active_check_output
     register: active_check_output
     when: openshift.master.cluster_method | default(None) == 'pacemaker'
     when: openshift.master.cluster_method | default(None) == 'pacemaker'
-    failed_when: active_check_output.stdout not in ['active', 'inactive']
+    failed_when: active_check_output.stdout not in ['active', 'inactive', 'unknown']
     changed_when: false
     changed_when: false
   - set_fact:
   - set_fact:
       is_active: "{{ active_check_output.stdout == 'active' }}"
       is_active: "{{ active_check_output.stdout == 'active' }}"