mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
6d4fd11dd0
commit
be5295cf7b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue