From be5295cf7be8d9cd2028f91c3bad159eb3582143 Mon Sep 17 00:00:00 2001 From: Nick Young Date: Fri, 5 Feb 2016 16:06:41 +1100 Subject: [PATCH] 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. --- salt/modules/glusterfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/glusterfs.py b/salt/modules/glusterfs.py index 1cfe73e60861..afa2a6967d40 100644 --- a/salt/modules/glusterfs.py +++ b/salt/modules/glusterfs.py @@ -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)