Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] pkg.installed test mode should show installable version #63985

Closed
nicholasmhughes opened this issue Mar 28, 2023 · 0 comments · Fixed by #63986
Closed

[FEATURE REQUEST] pkg.installed test mode should show installable version #63985

nicholasmhughes opened this issue Mar 28, 2023 · 0 comments · Fixed by #63986
Assignees
Labels
Feature new functionality including changes to functionality and code refactors, etc. State-Module

Comments

@nicholasmhughes
Copy link
Collaborator

Describe the solution you'd like
Currently, pkg.installed will only show installed as the version for new package installs when run in test mode.

local:
----------
          ID: things
    Function: pkg.installed
      Result: None
     Comment: The following packages would be installed/updated: unzip
     Started: 18:06:05.586891
    Duration: 21196.532 ms
     Changes:   
              ----------
              unzip:
                  ----------
                  new:
                      installed
                  old:

Summary for local
------------
Succeeded: 1 (unchanged=1, changed=1)
Failed:    0
------------
Total states run:     1
Total run time:  21.197 s

It would be helpful if the state showed the intended version to install in test mode.

local:
----------
          ID: things
    Function: pkg.installed
      Result: None
     Comment: The following packages would be installed/updated: unzip
     Started: 18:12:55.880310
    Duration: 774.975 ms
     Changes:   
              ----------
              unzip:
                  ----------
                  new:
                      6.0-23+deb10u3
                  old:

Summary for local
------------
Succeeded: 1 (unchanged=1, changed=1)
Failed:    0
------------
Total states run:     1
Total run time: 774.975 ms

Please Note
If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc. State-Module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant