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

Enable "Pkg.InfoInstalled" to return all installed package versions #234

Merged
merged 3 commits into from
May 23, 2018

Conversation

meaksh
Copy link
Member

@meaksh meaksh commented May 18, 2018

This PR enables Pkg.InfoInstalled call to get all installed package versions on the minion (instead only the latest version) by introducing the allVersions parameter for Pkg.InfoInstalled.

Salt all_versions parameter for pkg.info_installed has been introduced here: saltstack/salt#47678 (approved but not yet merged)

@meaksh meaksh requested review from lucidd and renner May 18, 2018 12:21
* @param packages optional give package names, otherwise return info about all packages
* @return the call
*/
public static LocalCall<Map<String, Xor<Info, List<Info>>>> infoInstalled(List<String> attributes,
Copy link
Member

@lucidd lucidd May 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like discussed i would remove the allVersions parameter here and pass always true since the return type only makes sense for true in case you would pass false you might as well use the old function with the simpler return type.

@meaksh meaksh force-pushed the master-add-pkg_installed-all-versions branch from 41d3c10 to 4730db4 Compare May 18, 2018 14:15
@meaksh
Copy link
Member Author

meaksh commented May 18, 2018

@lucidd changes done!

Copy link
Member

@renner renner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@renner renner merged commit e9ae83c into master May 23, 2018
@renner renner deleted the master-add-pkg_installed-all-versions branch May 23, 2018 07:39
@renner renner added this to the Version 0.15.0 milestone Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants