summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2016-04-11 14:45:25 -0400
committerBrenton Leanhardt <bleanhar@redhat.com>2016-04-12 14:32:24 -0400
commit5c7b510d2ac016c8bb09463307f9a471cc924a9d (patch)
treed56505ae147ed0f4b9d56551c10513f24d8b1f56
parent09d6e9ffe41ad282e8abd064cc70d70b5ae7fb1c (diff)
downloadopenshift-5c7b510d2ac016c8bb09463307f9a471cc924a9d.tar.gz
openshift-5c7b510d2ac016c8bb09463307f9a471cc924a9d.tar.bz2
openshift-5c7b510d2ac016c8bb09463307f9a471cc924a9d.tar.xz
openshift-5c7b510d2ac016c8bb09463307f9a471cc924a9d.zip
Fixing non-HA master restart conditional
-rw-r--r--roles/openshift_master/handlers/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_master/handlers/main.yml b/roles/openshift_master/handlers/main.yml
index 4b480a301..f7dfb11f7 100644
--- a/roles/openshift_master/handlers/main.yml
+++ b/roles/openshift_master/handlers/main.yml
@@ -1,7 +1,7 @@
---
- name: restart master
service: name={{ openshift.common.service_type }}-master state=restarted
- when: (openshift.master.ha is defined and not openshift.master.ha | bool) and (not (master_service_status_changed | default(false) | bool))
+ when: (openshift.master.ha is not defined or not openshift.master.ha | bool) and (not (master_service_status_changed | default(false) | bool))
notify: Verify API Server
- name: restart master api