Unverified Commit 75c181ee authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #5664 from yongman/fix-rediscli-output-format

Fix cluster call reply format readable
parents 430a987f dfe81b33
...@@ -5404,7 +5404,7 @@ static int clusterManagerCommandCall(int argc, char **argv) { ...@@ -5404,7 +5404,7 @@ static int clusterManagerCommandCall(int argc, char **argv) {
if (status != REDIS_OK || reply == NULL ) if (status != REDIS_OK || reply == NULL )
printf("%s:%d: Failed!\n", n->ip, n->port); printf("%s:%d: Failed!\n", n->ip, n->port);
else { else {
sds formatted_reply = cliFormatReplyTTY(reply, ""); sds formatted_reply = cliFormatReplyRaw(reply);
printf("%s:%d: %s\n", n->ip, n->port, (char *) formatted_reply); printf("%s:%d: %s\n", n->ip, n->port, (char *) formatted_reply);
sdsfree(formatted_reply); sdsfree(formatted_reply);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment