Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
value_for_platform: boolean value not working when default value is set to "true" #8704
value_for_platform works with string and arrays, and in some cases with booleans, but, when "default" value is set to "true", the specific OS versions values are ignored.
Chef Infra Client: 15.0.300
I've tested this on Debian 7/8/9, Ubuntu 12/14/16/18 and CentOS 6/7 each one of them with their specific chef latest version.
The output is from CentOS 7 and the boolean result should be "false" but the default value is returned instead.
If the default value is not set at all, and there are only specific OS versions values, then, everything works:
However, the "boolean to string" value is empty. It should return "false", probabil is nil or such, and that's why the default value is returned instead.
Maybe I am missing something and there is another way to use value_for_platform, but I didn't found anything else on docs, so I guess is a bug.