From 13fd4a3becab7fd991ae2c6a8ca1c52a51048cef Mon Sep 17 00:00:00 2001 From: Michael Calmer 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:: - {'': ''} + {'': '[,...]'} + + versions_as_list: + If set to true, the versions are provided as a list + + {'': ['', '']} + + removed: + not supported + + purge_desired: + not supported CLI Example: -- 2.1.4