File fix-regression-on-cmd.run-when-passing-tuples-as-cmd.patch of Package salt

From 91f7801c1db87d715a9d9cd1d2e5becf7fa947b2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?=
 <psuarezhernandez@suse.com>
Date: Fri, 26 Feb 2021 09:15:03 +0000
Subject: [PATCH] Fix regression on cmd.run when passing tuples as cmd
 (bsc#1182740)

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

diff --git a/salt/modules/cmdmod.py b/salt/modules/cmdmod.py
index 87476c1bde..095efe82dc 100644
--- a/salt/modules/cmdmod.py
+++ b/salt/modules/cmdmod.py
@@ -77,7 +77,7 @@ def __virtual__():
 
 
 def _log_cmd(cmd):
-    if not isinstance(cmd, list):
+    if isinstance(cmd, six.string_types):
         return cmd.split()[0].strip()
     return cmd[0].strip()
 
-- 
2.30.1
openSUSE Build Service is sponsored by