Skip to content

Commit

Permalink
Add undefined variables check
Browse files Browse the repository at this point in the history
  • Loading branch information
nak3 committed Apr 30, 2018
1 parent 74531d6 commit 6ccdac4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/openshift_master/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
when:
- not (master_api_service_status_changed | default(false) | bool)
- openshift.master.cluster_method == 'native'
- master_api_enabled.rc == 0 or openshift_version | version_compare('3.7','>=')
- master_api_enabled is defined and (master_api_enabled.rc == 0 or openshift_version | version_compare('3.7','>='))
notify:
- Verify API Server

Expand All @@ -20,7 +20,7 @@
when:
- not (master_controllers_service_status_changed | default(false) | bool)
- openshift.master.cluster_method == 'native'
- master_controllers_enabled.rc == 0 or openshift_version | version_compare('3.7','>=')
- master_controllers_enabled is defined and (master_controllers_enabled.rc == 0 or openshift_version | version_compare('3.7','>='))

# For now, this handler is called only from update_etcd_client_urls.yml in case migration from previous version.
# Thus, {{ *_service_status_changed }} like api, controllers is neither implemented nor handled.
Expand All @@ -29,7 +29,7 @@
name: "{{ openshift.common.service_type }}-master"
state: restarted
when:
- single_master_enabled.rc == 0 or openshift_version | version_compare('3.7','<')
- single_master_enabled is defined and (single_master_enabled.rc == 0 or openshift_version | version_compare('3.7','<'))
notify:
- Verify API Server

Expand Down

0 comments on commit 6ccdac4

Please sign in to comment.