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

(PDK-1333) Fix command_spec rake task for newer CRI versions #699

Merged
merged 1 commit into from
Jul 5, 2019

Conversation

glennsarti
Copy link
Contributor

Previously the command_spec rake task only worked for older CRI version
(<= 2.11.0) because the cri_options used to be passed as a hash, but is now it's
own object type. This commit updates the conversion process to optionally
convert the object to hash on newer CRI versions.

Previously the command_spec rake task only worked for older CRI version
(<= 2.11.0) because the cri_options used to be passed as a hash, but is now it's
own object type. This commit updates the conversion process to optionally
convert the object to hash on newer CRI versions.
@glennsarti glennsarti requested a review from rodjek July 3, 2019 03:19
@coveralls
Copy link

Coverage Status

Coverage remained the same at 93.09% when pulling abc5d9d on glennsarti:fix-command-spec into f1cdfcb on puppetlabs:master.

Copy link
Contributor

@rodjek rodjek left a comment

Choose a reason for hiding this comment

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

Any reason not to change this to cri_option.is_a?(Hash) instead of comparing versions?

@glennsarti
Copy link
Contributor Author

glennsarti commented Jul 3, 2019

Thought versions would be more "correct". But comparing on object type is ok too.

Particularly as this "broke" API compatibility in a minor version bump 2.11.0 -> 2.12.0

@glennsarti glennsarti merged commit 8177b43 into puppetlabs:master Jul 5, 2019
@glennsarti glennsarti deleted the fix-command-spec branch August 19, 2019 08:10
@chelnak chelnak added the bug label Jan 16, 2023
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.

4 participants