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

Fix cluster call reply format readable
This commit is contained in:
Salvatore Sanfilippo 2018-12-07 11:28:18 +01:00 committed by GitHub
commit 75c181ee2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
} }