Skip to content

Commit

Permalink
dmq: update output format of dmq.list_nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangst committed May 27, 2017
1 parent 7f034e8 commit 4351c22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/dmq/dmq.c
Expand Up @@ -354,11 +354,11 @@ static void dmq_rpc_list_nodes(rpc_t *rpc, void *c)
memset(ip, 0, IP6_MAX_STR_SIZE + 1);
ip_addr2sbuf(&cur->ip_address, ip, IP6_MAX_STR_SIZE);
if (rpc->add(c, "{", &h) < 0) goto error;
if (rpc->struct_add(h, "SSsddd",
if (rpc->struct_add(h, "SSsSdd",
"host", &cur->uri.host,
"port", &cur->uri.port,
"resolved_ip", ip,
"status", cur->status,
"status", get_status_str(cur->status),
"last_notification", cur->last_notification,
"local", cur->local) < 0) goto error;
cur = cur->next;
Expand Down

0 comments on commit 4351c22

Please sign in to comment.