diff options
| author | Daniel Williams <dwilliams@kenzan.com> | 2018-10-19 09:59:16 -0600 |
|---|---|---|
| committer | Daniel Williams <dwilliams@kenzan.com> | 2018-10-19 09:59:16 -0600 |
| commit | 676cd3987639b1bad5263d2a0ce5861827d63d3e (patch) | |
| tree | 5f6ac419f59021dba4e8e21b82ac2801a68bde12 | |
| parent | bf203991b74b01fa79c501a28e53cc46d47e21e0 (diff) | |
| download | redis-py-676cd3987639b1bad5263d2a0ce5861827d63d3e.tar.gz | |
Changed to a boolean argument.
| -rwxr-xr-x | redis/client.py | 6 |
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 |
