Skip to content

Commit

Permalink
Minor cleanups in commands/cluster.py (#2094)
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-binbin committed Apr 28, 2022
1 parent 1475e5c commit 40fdb15
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions redis/commands/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,15 @@ def replicaof(self, *args, **kwargs):
For more information see https://redis.io/commands/replicaof
"""
raise RedisClusterException("REPLICAOF is not supported in cluster" " mode")
raise RedisClusterException("REPLICAOF is not supported in cluster mode")

def swapdb(self, *args, **kwargs):
"""
Swaps two Redis databases.
For more information see https://redis.io/commands/swapdb
"""
raise RedisClusterException("SWAPDB is not supported in cluster" " mode")
raise RedisClusterException("SWAPDB is not supported in cluster mode")


class ClusterDataAccessCommands(DataAccessCommands):
Expand Down Expand Up @@ -310,7 +310,6 @@ class RedisClusterCommands(
target specific nodes. By default, if target_nodes is not specified, the
command will be executed on the default cluster node.
:param :target_nodes: type can be one of the followings:
- nodes flag: ALL_NODES, PRIMARIES, REPLICAS, RANDOM
- 'ClusterNode'
Expand All @@ -323,7 +322,7 @@ class RedisClusterCommands(

def cluster_myid(self, target_node):
"""
Returns the nodes id.
Returns the node's id.
:target_node: 'ClusterNode'
The node to execute the command on
Expand Down

0 comments on commit 40fdb15

Please sign in to comment.