mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Set default GlusterFS version to 6
This commit is contained in:
parent
443bfc6a81
commit
bd729cb3ea
1 changed files with 3 additions and 1 deletions
|
@ -30,12 +30,14 @@ def __virtual__():
|
|||
|
||||
|
||||
def _get_minor_version():
|
||||
version = 6
|
||||
cmd = 'gluster --version'
|
||||
result = __salt__['cmd.run'](cmd).splitlines()
|
||||
for line_number in range(len(result)):
|
||||
line = result[line_number]
|
||||
if line.startswith('glusterfs'):
|
||||
return int(line.split()[1].split('.')[1])
|
||||
version = int(line.split()[1].split('.')[1])
|
||||
return version
|
||||
|
||||
|
||||
def list_peers():
|
||||
|
|
Loading…
Add table
Reference in a new issue