Browse Source

GlusterFS: Check for namespace if deploying a StorageClass

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1476197

Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Jose A. Rivera 7 years ago
parent
commit
d46eeae50e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml

+ 1 - 1
roles/openshift_storage_glusterfs/tasks/glusterfs_common.yml

@@ -15,7 +15,7 @@
   oc_project:
     state: present
     name: "{{ glusterfs_namespace }}"
-  when: glusterfs_is_native or glusterfs_heketi_is_native
+  when: glusterfs_is_native or glusterfs_heketi_is_native or glusterfs_storageclass
 
 - name: Delete pre-existing heketi resources
   oc_obj: