Skip to content

Commit

Permalink
More shell fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdehaan committed Mar 12, 2014
1 parent 6067d82 commit dac9027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/database/riak
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ except ImportError:


def ring_check(module, riak_admin_bin):
cmd = '%s ringready 2> /dev/null' % riak_admin_bin
cmd = '%s ringready' % riak_admin_bin
rc, out, err = module.run_command(cmd)
if rc == 0 and 'TRUE All nodes agree on the ring' in out:
return True
Expand Down Expand Up @@ -221,7 +221,7 @@ def main():
if wait_for_handoffs:
timeout = time.time() + wait_for_handoffs
while True:
cmd = '%s transfers 2> /dev/null' % riak_admin_bin
cmd = '%s transfers' % riak_admin_bin
rc, out, err = module.run_command(cmd)
if 'No transfers active' in out:
result['handoffs'] = 'No transfers active.'
Expand Down

0 comments on commit dac9027

Please sign in to comment.