Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Smityz committed Nov 19, 2019
1 parent bf70c2c commit 710e618
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/shell/commands/node_management.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,10 +494,11 @@ bool remote_command(command_executor *e, shell_context *sc, arguments args)
for (int i = 0; i < node_list.size(); ++i) {
node_desc &n = node_list[i];
std::string hostname;
if (resolve_ip)
if (resolve_ip) {
dsn::utils::hostname_from_ip_port(n.address.to_string(), &hostname);
else
} else {
hostname = n.address.to_string();
}
fprintf(stderr, "CALL [%s] [%s] ", n.desc.c_str(), hostname.c_str());
if (results[i].first) {
fprintf(stderr, "succeed: %s\n", results[i].second.c_str());
Expand Down

0 comments on commit 710e618

Please sign in to comment.