Skip to content

Commit

Permalink
Merge pull request #1237 from basho/bugfix/proper-return-from-cs-cons…
Browse files Browse the repository at this point in the history
…ole-status

Return 'ok' from riak_cs_console:status/1

Reviewed-by: shino
  • Loading branch information
borshop committed Sep 7, 2015
2 parents ef3ca6c + 8251f40 commit 49d4e92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/riak_cs_console.erl
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@

status([]) ->
Stats = riak_cs_stats:get_stats(),
[io:format("~p : ~p~n", [Name, Value])
|| {Name, Value} <- Stats].
_ = [io:format("~p : ~p~n", [Name, Value])
|| {Name, Value} <- Stats],
ok.

%% in progress.
cluster_info([OutFile]) ->
Expand All @@ -57,8 +58,7 @@ cluster_info([OutFile]) ->
error:{badmatch, {error, enotdir}} ->
io:format("Cluster_info failed, not a directory ~p~n", [filename:dirname(OutFile)]);
Exception:Reason ->
lager:error("Cluster_info failed ~p:~p",
[Exception, Reason]),
lager:error("Cluster_info failed ~p:~p", [Exception, Reason]),
io:format("Cluster_info failed, see log for details~n"),
error
end.
Expand Down

0 comments on commit 49d4e92

Please sign in to comment.