opscode-cookbooks/mysql — pull request #46 by mbostani (2012-11-21 10:51:39+00:00)
Title: [COOK-1929] fix erroneous boolean query which checks if current platform is ubuntu

This doesn´t return a boolean value as expected:

node.platform?("ubuntu") //returns the the argument itself "ubuntu"
node.platform?("ubuntu").class // returns the type String

node.platform?("centos") //returns the the argument itself "centos"
node.platform?("centos").class // returns the type String

But this is working fine:

node.platform.include?("ubuntu")

In my case we have centos running as platform so the following sequence validates my observation:

node.platform.include?("ubuntu") // false (boolean)
node.platform.include?("centos") // true (boolean)
node.platform // centos (String)