From e1e5cf1c2a94fa04511b193746681e4ee0b16dfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDygis=20=C5=A0kulteckis?= Date: Fri, 7 Sep 2018 11:38:11 +0800 Subject: [PATCH] Make sdb.delete() actually call a delete in Redis Looks like this was missed when copy-pasting the sdb.get() method. --- salt/sdb/redis_sdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/sdb/redis_sdb.py b/salt/sdb/redis_sdb.py index 02f7fe8041..182b162d8e 100644 --- a/salt/sdb/redis_sdb.py +++ b/salt/sdb/redis_sdb.py @@ -81,4 +81,4 @@ def delete(key, profile=None): redis_kwargs = profile.copy() redis_kwargs.pop('driver') redis_conn = redis.StrictRedis(**redis_kwargs) - return redis_conn.get(key) + return redis_conn.delete(key)