From 0b58491fdfe6fb044420c52c94899e8bc3a1e6d1 Mon Sep 17 00:00:00 2001 From: Flex Liu Date: Mon, 15 Jul 2024 13:08:07 +0200 Subject: [PATCH] Add param version to purge() --- salt/modules/zypperpkg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/modules/zypperpkg.py b/salt/modules/zypperpkg.py index 1b854bc1a1..60ccc0b7a5 100644 --- a/salt/modules/zypperpkg.py +++ b/salt/modules/zypperpkg.py @@ -2204,7 +2204,7 @@ def remove( def purge( - name=None, pkgs=None, root=None, inclusion_detection=False, **kwargs + name=None, pkgs=None, version=None, root=None, inclusion_detection=False, **kwargs ): # pylint: disable=unused-argument """ .. versionchanged:: 2015.8.12,2016.3.3,2016.11.0 @@ -2254,7 +2254,7 @@ def purge( salt '*' pkg.purge ,, salt '*' pkg.purge pkgs='["foo", "bar"]' """ - return _uninstall(inclusion_detection, name=name, pkgs=pkgs, root=root) + return _uninstall(inclusion_detection, name=name, pkgs=pkgs, version=version, root=root) def list_holds(pattern=None, full=True, root=None, **kwargs):