Fix check of setting volume options
'fgrep' is more precise then 'grep'
Change-Id: Ia6b9abf5f2234a07ca2d6d17fb2bf1dd973436f2
Related-Prod: PROD-25019
diff --git a/glusterfs/server/setup.sls b/glusterfs/server/setup.sls
index b983810..53e66a7 100644
--- a/glusterfs/server/setup.sls
+++ b/glusterfs/server/setup.sls
@@ -98,7 +98,7 @@
glusterfs_vol_{{ name }}_{{ key }}:
cmd.run:
- name: "gluster volume set '{{ name }}' '{{ key }}' '{{ value }}'"
- - unless: "gluster volume info '{{ name }}' | grep '{{ key }}: {{ value }}'"
+ - unless: "gluster volume info '{{ name }}' | fgrep '{{ key }}: {{ value }}'"
- require:
{%- if force_compatibility %}
- cmd: glusterfs_vol_{{ name }}