Skip to content

Commit

Permalink
making it so that it's possible to call 'status' on an arbiter
Browse files Browse the repository at this point in the history
  • Loading branch information
AKS (probably) on walker committed Jul 26, 2015
1 parent 90be9f1 commit c9985b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mongoctl/commands/common/status.py
Expand Up @@ -18,7 +18,10 @@ def status_command(parsed_options):
server = repository.lookup_server(id)
if server:
log_info("Status for server '%s':" % id)
status = server.get_status(admin=True)
if server.is_arbiter_server():
status = server.get_status(admin=False)
else:
status = server.get_status(admin=True)
else:
cluster = repository.lookup_cluster(id)
if cluster:
Expand Down

0 comments on commit c9985b7

Please sign in to comment.