Browse Source

Fix cluster_method conditional in master restart playbook.

Andrew Butcher 9 years ago
parent
commit
cc7b1a3f58
1 changed files with 2 additions and 2 deletions
  1. 2 2
      playbooks/common/openshift-master/restart.yml

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

@@ -73,12 +73,12 @@
     command: >
       systemctl is-active {{ openshift.common.service_type }}-master
     register: active_check_output
-    when: openshift.master.cluster_method == 'pacemaker'
+    when: openshift.master.cluster_method | default(None) == 'pacemaker'
     failed_when: active_check_output.stdout not in ['active', 'inactive']
     changed_when: false
   - set_fact:
       is_active: "{{ active_check_output.stdout == 'active' }}"
-    when: openshift.master.cluster_method == 'pacemaker'
+    when: openshift.master.cluster_method | default(None) == 'pacemaker'
 
 - name: Evaluate master groups
   hosts: localhost