Explorar el Código

Merge pull request #7237 from jarrpa/glusterfs-kernel-mod-fix

GlusterFS: Check for groups in template file
Scott Dodson hace 7 años
padre
commit
3efd30b3b5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      roles/openshift_storage_glusterfs/templates/glusterfs.conf.j2

+ 2 - 2
roles/openshift_storage_glusterfs/templates/glusterfs.conf.j2

@@ -2,7 +2,7 @@
 dm_thin_pool
 dm_multipath
 target_core_user
-{% if inventory_hostname in groups.glusterfs or inventory_hostname in groups.glusterfs_registry %}
+{% if (groups.glusterfs is defined and inventory_hostname in groups.glusterfs) or (groups.glusterfs_registry is defined and inventory_hostname in groups.glusterfs_registry) %}
 dm_snapshot
 dm_mirror
-{% endif %}
+{% endif %}