summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/redis/client.py b/redis/client.py
index f33a62c..cc00de0 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -822,12 +822,12 @@ class StrictRedis(object):
"Returns a list of slaves for ``service_name``"
return self.execute_command('SENTINEL SLAVES', service_name)
- def shutdown(self, option=None):
+ def shutdown(self, save=True):
"Shutdown the server"
try:
args = ['SHUTDOWN']
- if option is not None:
- args.append(option)
+ if not save:
+ args.append('NOSAVE')
self.execute_command(*args)
except ConnectionError:
# a ConnectionError here is expected