fixes #5896 - unable to set compute-resource's 'Console passwords' option in API

This will cause an error if somebody passes a boolean into the API (which is what the API doc says), as to_i isn't defined on true/falseclass.