-
Notifications
You must be signed in to change notification settings - Fork 169
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
Set smart_class_parameter override: false leads to error #1644
Comments
Is there anything useful in the Foreman log ( |
This is the whole log for a single parameter:
Hope it helps! |
The relevant line is:
While I think this should be better visible in the error returned via HTTP, I think you can't set override false in this context. |
Oh now I see I forgot to post the relevant output in the error. MB! My question then is how can I undo a parameter override? |
I gotta try this out myself when back in the office, I agree that you should be able, just no idea why it refuses to. Maybe because it thinks it's a good idea to change the type and that is considered an override worthy change? (But your playbook doesn't mention that change, just the diff, weird) |
I found this in the source code. Maybe this is helpful:
It seems when override is false the parameter type is set to empty string. It might be better to set it to None or remove it completely from the entity? |
Yeah, probably worth a try to use |
This seems to be the solution. Changing the value here from empty string to Would be amazing if you could test it your own and maybe implement it asap? |
I'm back in the office next week, and will have a look then |
SUMMARY
After setting the override argument of a smart class parameter to true and then reversing it back to false (without changing any other argument) I get an error.
ISSUE TYPE
ANSIBLE VERSION
COLLECTION VERSION
KATELLO/FOREMAN VERSION
STEPS TO REPRODUCE
EXPECTED RESULTS
Override should be set to false.
ACTUAL RESULTS
Error:
Checkmode:
The text was updated successfully, but these errors were encountered: