gluster cli: don't print port in peer status
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1566 (gluster peer status port number) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1566
This commit is contained in:
parent
43d36d4563
commit
dcb434eb13
@ -218,8 +218,13 @@ gf_cli3_1_list_friends_cbk (struct rpc_req *req, struct iovec *iov,
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
cli_out ("hostname:%s, port:%d, uuid:%s, state:%d",
|
||||
hostname_buf, port, uuid_buf, state);
|
||||
if (!port) {
|
||||
cli_out ("hostname:%s, uuid:%s, state:%d",
|
||||
hostname_buf, uuid_buf, state);
|
||||
} else {
|
||||
cli_out ("hostname:%s, port:%d, uuid:%s, state:%d",
|
||||
hostname_buf, port, uuid_buf, state);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user