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

Refs #35713 - correctly call methods with kwargs #10845

Merged
merged 1 commit into from Jan 17, 2024

Conversation

jeremylenz
Copy link
Member

What are the changes introduced in this pull request?

In #10744 package_names_for_job_template was extracted into two new methods, yum_names_for_job_template and deb_names_for_job_template.

These new methods accept only keyword arguments, but are called only with regular non-kwargs.

This change fixes that and properly calls the methods with kwargs.

Considerations taken when implementing this change?

What are the testing steps for this pull request?

Install or remove a package via the new host details UI and make sure that the job template renders without errors.

@ekohl
Copy link
Member

ekohl commented Jan 17, 2024

@ofedoren I think this would also be relevant to our Ruby 3 work.

Copy link
Contributor

@ofedoren ofedoren left a comment

Choose a reason for hiding this comment

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

Yeah, thanks for notifying.

LGTM, and I'd just merge it. There is no reason to hold it.

And now I'm really curious why it worked at the first place...

@jeremylenz
Copy link
Member Author

It was broken by #10744 because that PR both added the methods and called them incorrectly, and I didn't catch it before merging.

@ekohl
Copy link
Member

ekohl commented Jan 17, 2024

@jeremylenz then shouldn't this be Refs #35713 instead of opening a new issue?

@jeremylenz
Copy link
Member Author

I usually don't use "Refs" because I don't trust our automations (mostly Jira/Bugzilla) not to duplicate or mess up tickets. I can change it if you feel strongly.

@ekohl
Copy link
Member

ekohl commented Jan 17, 2024

Refs should be used if it's the same issue, within the same release. Otherwise you mess up automation, like cherry picks

@jeremylenz jeremylenz changed the title Fixes #37045 - correctly call methods with kwargs Refs #35713 - correctly call methods with kwargs Jan 17, 2024
@jeremylenz
Copy link
Member Author

updated Redmine and commit messages.

Copy link
Member

@ianballou ianballou left a comment

Choose a reason for hiding this comment

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

ACK via #10846 (review)

@jeremylenz jeremylenz merged commit 3ac7cdd into Katello:master Jan 17, 2024
6 checks passed
sbernhard pushed a commit to ATIX-AG/katello that referenced this pull request Feb 29, 2024
sbernhard pushed a commit to ATIX-AG/katello that referenced this pull request Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants