gluster_volume: Fix `volume set' and `quota' features (#40438) (#40644)

* Add documentation for setting multiple options.
* Do not set `cluster' to myhostname, if cluster is not set. This will cause
  parse error, since module will try to parse the brick and hosts.
* Also fixes issue #40410
pull/40716/head
Sachidananda Urs 7 years ago committed by Adam Miller
parent 858f0fc000
commit 0211fb7a78

@ -111,6 +111,16 @@ EXAMPLES = """
options:
performance.cache-size: 256MB
- name: Set multiple options on GlusterFS volume
gluster_volume:
state: present
name: test1
options:
{ performance.cache-size: 128MB,
write-behind: 'off',
quick-read: 'on'
}
- name: start gluster volume
gluster_volume:
state: started
@ -409,8 +419,8 @@ def main():
if cluster is not None and len(cluster) > 1 and cluster[-1] == '':
cluster = cluster[0:-1]
if cluster is None or cluster[0] == '':
cluster = [myhostname]
if cluster is None:
cluster = []
if brick_paths is not None and "," in brick_paths:
brick_paths = brick_paths.split(",")

Loading…
Cancel
Save