summaryrefslogtreecommitdiff
path: root/redis
diff options
context:
space:
mode:
authorDaniel Williams <dwilliams@kenzan.com>2018-10-19 09:59:16 -0600
committerDaniel Williams <dwilliams@kenzan.com>2018-10-19 09:59:16 -0600
commit676cd3987639b1bad5263d2a0ce5861827d63d3e (patch)
tree5f6ac419f59021dba4e8e21b82ac2801a68bde12 /redis
parentbf203991b74b01fa79c501a28e53cc46d47e21e0 (diff)
downloadredis-py-676cd3987639b1bad5263d2a0ce5861827d63d3e.tar.gz
Changed to a boolean argument.
Diffstat (limited to 'redis')
-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