Skip to content

Conversation

@mateiw
Copy link
Contributor

@mateiw mateiw commented Nov 11, 2019

What does this PR do?

Port of #51576 to master.

What issues does this PR fix or reference?

None.

Previous Behavior

pkg.info_instaled returned also packages in status rc or pn.

New Behavior

pkg.info_instaled returnes only packages in ii or hi.

Tests written?

Yes

Commits signed with GPG?

No

@mateiw mateiw requested a review from a team as a code owner November 11, 2019 17:24
@ghost ghost requested a review from DmitryKuzmenko November 11, 2019 17:24
Copy link
Contributor

@waynew waynew left a comment

Choose a reason for hiding this comment

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

Just some minor picks, otherwise this seems reasonable.

On debian systems a package can have several other states apart from installed (ii or hi),
 like rc (removed but config files present) or pn (purged not installed).
 This returns only installed packages (ii or hi).
@mateiw
Copy link
Contributor Author

mateiw commented Nov 20, 2019

@waynew thanks for the suggestions, I've updated the unit test.

@mateiw mateiw requested a review from waynew November 20, 2019 11:43
@dwoz dwoz merged commit c883fa4 into saltstack:master Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants