{"action":"opened","issue":{"url":"https://api.github.com/repos/rodjek/puppet-lint/issues/415","labels_url":"https://api.github.com/repos/rodjek/puppet-lint/issues/415/labels{/name}","comments_url":"https://api.github.com/repos/rodjek/puppet-lint/issues/415/comments","events_url":"https://api.github.com/repos/rodjek/puppet-lint/issues/415/events","html_url":"https://github.com/rodjek/puppet-lint/issues/415","id":68915758,"number":415,"title":"Quoted boolean check should only check values","user":{"login":"halfninja","id":72052,"avatar_url":"https://avatars.githubusercontent.com/u/72052?v=3","gravatar_id":"","url":"https://api.github.com/users/halfninja","html_url":"https://github.com/halfninja","followers_url":"https://api.github.com/users/halfninja/followers","following_url":"https://api.github.com/users/halfninja/following{/other_user}","gists_url":"https://api.github.com/users/halfninja/gists{/gist_id}","starred_url":"https://api.github.com/users/halfninja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfninja/subscriptions","organizations_url":"https://api.github.com/users/halfninja/orgs","repos_url":"https://api.github.com/users/halfninja/repos","events_url":"https://api.github.com/users/halfninja/events{/privacy}","received_events_url":"https://api.github.com/users/halfninja/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-16T12:42:24Z","updated_at":"2015-04-16T12:42:24Z","closed_at":null,"body":"I have a case like this, where I am checking for an incoming value that's literally \"false\" so I can handle it as false (because Hiera is keen to stringify everything):\r\n\r\n```\r\ncase $uid {\r\n    false:   { $real_uid = undef }\r\n    'false': { $real_uid = undef }\r\n    Integer: { $real_uid = $uid }\r\n    String:  { fail 'uid must either be a number or false' }\r\n    default: { fail 'uid must either be a number or false' }\r\n}\r\n```\r\n\r\nI can see the value of the check for catching strings passed as parameter values, but I think this situation should be allowed. What do you think?\r\n\r\n\r\n\r\n"}}