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

Fix cookbook version sorting #7

Merged
merged 3 commits into from
Apr 10, 2019
Merged

Conversation

majormoses
Copy link
Contributor

when sorting cast and compare version objects rather than assuming its a string.

fixes #6

Also added --ignored-used flag to return the list of cookbooks regardless if they are in use.

While this might sound like a bad idea in my org we unfortunately have stale inventory and therefore old versions of cookbooks will never get deleted because they were never removed from the chef server. While doing some testing/validation that the sorting worked as intended I noticed some odd behavior and traced it down to this and validated that the output matches what I see with the plugin I currently maintain when using the new flag.

Signed-off-by: Ben Abrams me@benabrams.it

when sorting cast and compare version objects rather than assuming its a string.

Signed-off-by: Ben Abrams <me@benabrams.it>
…ss if they are in use.

While this might sound like a bad idea it is actually helpful in situations where you have outdated inventory.

Signed-off-by: Ben Abrams <me@benabrams.it>
Signed-off-by: Ben Abrams <me@benabrams.it>
@brentm5 brentm5 added the bug label Apr 10, 2019
@brentm5 brentm5 changed the title fix version sorting Fix cookbook version sorting Apr 10, 2019
@brentm5 brentm5 merged commit 07fce1b into cvent:master Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cookbook order might be wrong for version numbers over 10
2 participants