Skip to content

[BUG] pkg.remove does not honor options #60290

@sharkbruhaha

Description

@sharkbruhaha

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

Metadata

Metadata

Labels

FreeBSDSilicon v3004.0Release code namebugbroken, incorrect, or confusing behaviorseverity-high2nd top severity, seen by most users, causes major problems

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions