Parameters get converted from type string to boolean including the value
Description of problem:
Satellite upgrade from 6.5.x to 6.6 causes strings being converted in booleans which in turn causes puppet failures.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Parameter String with value yes
2. Upgrade Satellite 6.5 to 6.6
3. Parameter becomes Boolean with value true
Parameter becomes Boolean with value true
key_type_name = 'string'
value = YAML.load param.value <<<<============== IF THE VALUE IS "no" it returns "false"
key_type_name = value.is_a?(Hash) ? 'yaml' : find_key_type(value) <<==== find_key_type function call.
And then we have the function return the value as boolean
return 'boolean' if [true, false].include?(param_value)
Parameter stays String with value true
This change was introduced because of an RFE to have more types supported for parameters.
Currently "string" is the only parameter type supported in hostgroup parameters on foreman 1.3. Our customers desperately need to put Array and Boolean type of parameters (possibly other types as well) into the hostgroup for better puppet parameter management of they application clusters. Since multiple parameter types are supported in Smart Variables, why the hostgroup parameters (as well host parameter) have to stuck with just one type (string).