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 override: false for smart class parameters #1648

Merged
merged 1 commit into from
Jul 26, 2023
Merged

Enable override: false for smart class parameters #1648

merged 1 commit into from
Jul 26, 2023

Conversation

yuqo2450
Copy link
Contributor

Updated the smart_class_parameter plugin, to address issue #1644.

Enforcing the parameter_type to be None instead of empty string ,allows to set a smart class parameter to false.

Was tested locally with Foreman 3.2.1.

@evgeni
Copy link
Member

evgeni commented Jul 26, 2023

thanks @yuqo2450 !

I've added a trivial changelog entry and otherwise your code change looks good.

@evgeni evgeni linked an issue Jul 26, 2023 that may be closed by this pull request
@yuqo2450
Copy link
Contributor Author

Thanks for answering that fast.

It's not to big of a change though 😉!

@evgeni
Copy link
Member

evgeni commented Jul 26, 2023

probably, but a good find nonetheless!

I've now added a simple test for this, so we don't regress here, and will merge once CI is green.

@evgeni evgeni merged commit b3b2716 into theforeman:develop Jul 26, 2023
19 of 20 checks passed
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.

Set smart_class_parameter override: false leads to error
2 participants