Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.4:Update
salt.18652
fix-regression-on-cmd.run-when-passing-tuples-a...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-regression-on-cmd.run-when-passing-tuples-as-cmd.patch of Package salt.18652
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor