Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
salt.3514
0011-improve-doc-for-list_pkgs.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0011-improve-doc-for-list_pkgs.patch of Package salt.3514
From 13fd4a3becab7fd991ae2c6a8ca1c52a51048cef Mon Sep 17 00:00:00 2001 From: Michael Calmer <mc@suse.de> Date: Wed, 10 Feb 2016 14:20:34 +0100 Subject: [PATCH 11/22] improve doc for list_pkgs --- salt/modules/zypper.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/salt/modules/zypper.py b/salt/modules/zypper.py index 6930f1a..56d9ffb 100644 --- a/salt/modules/zypper.py +++ b/salt/modules/zypper.py @@ -291,9 +291,21 @@ def version(*names, **kwargs): def list_pkgs(versions_as_list=False, **kwargs): ''' - List the packages currently installed as a dict:: + List the packages currently installed as a dict with versions + as a comma separated string:: - {'<package_name>': '<version>'} + {'<package_name>': '<version>[,<version>...]'} + + versions_as_list: + If set to true, the versions are provided as a list + + {'<package_name>': ['<version>', '<version>']} + + removed: + not supported + + purge_desired: + not supported CLI Example: -- 2.1.4
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