Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.4:ARM
salt.20521
fix-aptpkg-systemd-call-bsc-1143301.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-aptpkg-systemd-call-bsc-1143301.patch of Package salt.20521
From 5dadda6822323f409c99112244c2c809e58126e1 Mon Sep 17 00:00:00 2001 From: Mihai Dinca <mdinca@suse.de> Date: Wed, 31 Jul 2019 15:29:03 +0200 Subject: [PATCH] Fix aptpkg systemd call (bsc#1143301) --- salt/modules/aptpkg.py | 2 +- tests/unit/modules/test_aptpkg.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py index bf90d0614f..c47ee852f4 100644 --- a/salt/modules/aptpkg.py +++ b/salt/modules/aptpkg.py @@ -160,7 +160,7 @@ def _call_apt(args, scope=True, **kwargs): and salt.utils.systemd.has_scope(__context__) and __salt__["config.get"]("systemd.scope", True) ): - cmd.extend(["systemd-run", "--scope", "--description", '"{}"'.format(__name__)]) + cmd.extend(["systemd-run", "--scope", '--description "{}"'.format(__name__)]) cmd.extend(args) params = { diff --git a/tests/unit/modules/test_aptpkg.py b/tests/unit/modules/test_aptpkg.py index 77d8b84896..c3769a7df1 100644 --- a/tests/unit/modules/test_aptpkg.py +++ b/tests/unit/modules/test_aptpkg.py @@ -896,8 +896,7 @@ class AptUtilsTestCase(TestCase, LoaderModuleMockMixin): [ "systemd-run", "--scope", - "--description", - '"salt.modules.aptpkg"', + '--description "salt.modules.aptpkg"', "apt-get", "purge", "vim", -- 2.29.2
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