Updating default_value of a hash/array smart class parameter with a non string value should return an error message
|Assigned To:||Ori Rabin|
|Target version:||Team Ivan Iteration 16|
|Found in release:||Pull request:||https://github.com/theforeman/foreman/pull/4137|
|Velocity based estimate||-|
Sending default_value as a hash/array fails through the api but doesn't give any error message.
will work but
will fail with no error message
#1 Updated by Dominic Cleal about 1 year ago
default_value is defined as taking a string input in the API, the user shouldn't really be passing non-string values (arrays, hashes, ints, bools). It should probably be a string representation matching the UI. Or is some conversion happening prior to it reaching the model?
(Logs showing the issue may make this clearer.)
#8 Updated by Vincent Lamers about 1 year ago
I'm running foreman 1.13.3-1. I'm having issues with overriding hashes (smart class parameter).. Yaml looks good but after I change the environment of the host I'll get a error 'value is invalid hash'. That happens to all the hashes which I want to override. It only happens after I try to change the environment of a host. Is this bug related to this? Many thanks!