fixes #11375, #11782 - validate a host's lookup_values
Enabling validation ensures the casting and validation within LookupValue runs during host/hostgroup save. Tweaks to hostgroup cloning ensure that the newly cloned hostgroup now passes validation when it has associated lookup values.
Don't show any LookupValue#match errors in the host/hostgroup forms as the value is autogenerated by the nested attribute setter.
(cherry picked from commit 003359564b4ab5fa8198cc9b035df405e7e600cd)
Related issues
Bug #11375: Smart class parameters turn YAML to string when using a multi line yaml
Bug #11782: Puppet override with invalid hash array doesn't give error
fixes #11375, #11782 - validate a host's lookup_values
Enabling validation ensures the casting and validation within
LookupValue runs during host/hostgroup save. Tweaks to hostgroup
cloning ensure that the newly cloned hostgroup now passes validation
when it has associated lookup values.
Don't show any LookupValue#match errors in the host/hostgroup forms
as the value is autogenerated by the nested attribute setter.
(cherry picked from commit 003359564b4ab5fa8198cc9b035df405e7e600cd)