summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cli/src/cli-rpc-ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index c347c5c13e6..ce5236bc708 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -11453,7 +11453,7 @@ gf_cli_snapshot_for_status (call_frame_t *frame, xlator_t *this,
* not be appropriate.
*/
if (ret &&
- (cmd != GF_SNAP_STATUS_TYPE_ALL ||
+ (cmd != GF_SNAP_STATUS_TYPE_ALL &&
cmd != GF_SNAP_STATUS_TYPE_VOL)) {
gf_log ("cli", GF_LOG_ERROR,
"cli_to_glusterd for snapshot status failed");