File fix-typo-on-msgpack-version-when-sanitizing-msgpack-.patch of Package salt.16897

From 5a2c7671be0fcdf03050049ac4a1bbf4929abf1e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?=
 <psuarezhernandez@suse.com>
Date: Fri, 27 Mar 2020 15:58:40 +0000
Subject: [PATCH] Fix typo on msgpack version when sanitizing msgpack
 kwargs (bsc#1167437)

---
 salt/utils/msgpack.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/salt/utils/msgpack.py b/salt/utils/msgpack.py
index 1d02aa96ba8b659eb4038f00563c9cfc31a568e5..4b5a256513a524a33d7d42773644567a0970a46b 100644
--- a/salt/utils/msgpack.py
+++ b/salt/utils/msgpack.py
@@ -61,7 +61,7 @@ def _sanitize_msgpack_kwargs(kwargs):
     assert isinstance(kwargs, dict)
     if version < (0, 6, 0) and kwargs.pop('strict_map_key', None) is not None:
         log.info('removing unsupported `strict_map_key` argument from msgpack call')
-    if version < (0, 5, 5) and kwargs.pop('raw', None) is not None:
+    if version < (0, 5, 2) and kwargs.pop('raw', None) is not None:
         log.info('removing unsupported `raw` argument from msgpack call')
     if version < (0, 4, 0) and kwargs.pop('use_bin_type', None) is not None:
         log.info('removing unsupported `use_bin_type` argument from msgpack call')
-- 
2.23.0


openSUSE Build Service is sponsored by