Fix small bug with starting volumes after creation.

Looks like when the module got changed to use the _gluster_xml function, this command was missed; using create now with start: True will raise an exception. Removing the initial 'gluster' will fix it.

Fixes #30923.
This commit is contained in:
Nick Young 2016-02-05 16:06:41 +11:00
parent 6d4fd11dd0
commit be5295cf7b

View file

@ -244,7 +244,7 @@ def create(name, bricks, stripe=False, replica=False, device_vg=False,
_gluster_xml(cmd)
if start:
_gluster_xml('gluster volume start {0}'.format(name))
_gluster_xml('volume start {0}'.format(name))
return 'Volume {0} created and started'.format(name)
else:
return 'Volume {0} created. Start volume to use'.format(name)