From 0e3356c40ea846d537835b29c3396b5f5915fafd Mon Sep 17 00:00:00 2001 From: James Martin Date: Wed, 19 Feb 2014 12:12:02 -0500 Subject: [PATCH] Properly fetching the riak version, and properly setting the python interpreter. --- library/database/riak | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/library/database/riak b/library/database/riak index 21673fa013..53faba6e98 100644 --- a/library/database/riak +++ b/library/database/riak @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- # (c) 2013, James Martin , Drew Kerrigan @@ -164,8 +164,9 @@ def main(): node_name = stats['nodename'] nodes = stats['ring_members'] 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, nodes=nodes, ring_size=ring_size,