summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rw-r--r--redis/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py
index ddfb211..9ba3547 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -543,7 +543,7 @@ class Redis(threading.local):
instance is promoted to a master instead.
"""
if host is None and port is None:
- return self.execute_command("SLAVEOF NO ONE")
+ return self.execute_command("SLAVEOF", "NO", "ONE")
return self.execute_command("SLAVEOF", host, port)
#### BASIC KEY COMMANDS ####