summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorJiri Mencak <jmencak@redhat.com>2017-12-08 16:35:02 +0100
committerJiri Mencak <jmencak@redhat.com>2017-12-08 16:35:02 +0100
commit0e41e51763c54c650d43ca28c8595f0d58a163ae (patch)
tree104c601dd60c8bf9519e9c343e26c4f5fa925e8e /roles
parent5cd32d44a6a776f4364742b039666932967c7ba8 (diff)
downloadopenshift-0e41e51763c54c650d43ca28c8595f0d58a163ae.tar.gz
openshift-0e41e51763c54c650d43ca28c8595f0d58a163ae.tar.bz2
openshift-0e41e51763c54c650d43ca28c8595f0d58a163ae.tar.xz
openshift-0e41e51763c54c650d43ca28c8595f0d58a163ae.zip
Check for openshift attribute before using it during CNS install.
Fixes: BZ1523681
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml b/roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml
index 30e83e79b..0c2fcb2c5 100644
--- a/roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml
+++ b/roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml
@@ -23,7 +23,7 @@
state: absent
labels: "{{ glusterfs_nodeselector | oo_dict_to_list_of_dict }}"
with_items: "{{ groups.all }}"
- when: glusterfs_wipe
+ when: "'openshift' in hostvars[item] and glusterfs_wipe"
- name: Delete pre-existing GlusterFS config
file: