Skip to content

Commit

Permalink
Add param version to purge()
Browse files Browse the repository at this point in the history
  • Loading branch information
winddss committed Jul 15, 2024
1 parent 705d978 commit 0b58491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salt/modules/zypperpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -2254,7 +2254,7 @@ def purge(
salt '*' pkg.purge <package1>,<package2>,<package3>
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):
Expand Down

0 comments on commit 0b58491

Please sign in to comment.