salt: [BUG] pkg.remove does not honor options

Description pkg.remove (and pkg.install) is not honoring options: https://docs.saltproject.io/en/3002/ref/modules/all/salt.modules.pkgng.html#salt.modules.pkgng.remove

Trying to glob, regex, and dryrun and none are working. Following the example CLI and still notta.

Setup None

Steps to Reproduce the behavior salt minion01 pkg.remove tree* glob=True dryrun=True (will fail because no pkg “tree*”)

salt minion01 pkg.remove tree dryrun=True (will uninstall “tree” despite this being specified as a dryrun)

Expected behavior I expect the glob=True, regex=True, dryrun=True to work as documented.

Versions Report

salt --versions-report
Salt Version: 
  Salt: 3002.2
Dependency Versions:
  dateutil: 2.6.1
  Jinja2: 2.10.1
  msgpack: 0.6.1
  Python: 3.6.8
  PyYAML: 3.12
  PyZMQ: 17.0.0
  Tornado: 4.5.3
  ZMQ: 4.3.1
(all other deps not mentioned are not installed)

System Versions:
  dist: rhel 8.3 Ootpa
  machine: x86_64
  release: 4.18.0-240.el8.x86_64
  system: Linux

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 22 (12 by maintainers)

Most upvoted comments

@sharkbruhaha yes, I have it assigned to do just that 😃 @s0undt3ch if you can please triage and verify this is still an issue, please.