mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #6066 from jsmartin/riak_module_fix
Properly fetching the riak version
This commit is contained in:
commit
d5c7290b93
1 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# (c) 2013, James Martin <jmartin@basho.com>, Drew Kerrigan <dkerrigan@basho.com>
|
# (c) 2013, James Martin <jmartin@basho.com>, Drew Kerrigan <dkerrigan@basho.com>
|
||||||
|
@ -164,7 +164,8 @@ def main():
|
||||||
node_name = stats['nodename']
|
node_name = stats['nodename']
|
||||||
nodes = stats['ring_members']
|
nodes = stats['ring_members']
|
||||||
ring_size = stats['ring_creation_size']
|
ring_size = stats['ring_creation_size']
|
||||||
version = stats['riak_core_version']
|
rc, out, err = module.run_command([riak_bin, 'version'] )
|
||||||
|
version = out.strip()
|
||||||
|
|
||||||
result = dict(node_name=node_name,
|
result = dict(node_name=node_name,
|
||||||
nodes=nodes,
|
nodes=nodes,
|
||||||
|
|
Loading…
Reference in a new issue