{"action":"created","issue":{"url":"https://api.github.com/repos/cfengine/core/issues/2628","repository_url":"https://api.github.com/repos/cfengine/core","labels_url":"https://api.github.com/repos/cfengine/core/issues/2628/labels{/name}","comments_url":"https://api.github.com/repos/cfengine/core/issues/2628/comments","events_url":"https://api.github.com/repos/cfengine/core/issues/2628/events","html_url":"https://github.com/cfengine/core/pull/2628","id":160572545,"number":2628,"title":"CFE-2260: allow ifelse(FALSE, $(x), \"something else\") to work","user":{"login":"tzz","id":67764,"avatar_url":"https://avatars.githubusercontent.com/u/67764?v=3","gravatar_id":"","url":"https://api.github.com/users/tzz","html_url":"https://github.com/tzz","followers_url":"https://api.github.com/users/tzz/followers","following_url":"https://api.github.com/users/tzz/following{/other_user}","gists_url":"https://api.github.com/users/tzz/gists{/gist_id}","starred_url":"https://api.github.com/users/tzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzz/subscriptions","organizations_url":"https://api.github.com/users/tzz/orgs","repos_url":"https://api.github.com/users/tzz/repos","events_url":"https://api.github.com/users/tzz/events{/privacy}","received_events_url":"https://api.github.com/users/tzz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jimis","id":3584514,"avatar_url":"https://avatars.githubusercontent.com/u/3584514?v=3","gravatar_id":"","url":"https://api.github.com/users/jimis","html_url":"https://github.com/jimis","followers_url":"https://api.github.com/users/jimis/followers","following_url":"https://api.github.com/users/jimis/following{/other_user}","gists_url":"https://api.github.com/users/jimis/gists{/gist_id}","starred_url":"https://api.github.com/users/jimis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimis/subscriptions","organizations_url":"https://api.github.com/users/jimis/orgs","repos_url":"https://api.github.com/users/jimis/repos","events_url":"https://api.github.com/users/jimis/events{/privacy}","received_events_url":"https://api.github.com/users/jimis/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-06-16T03:56:27Z","updated_at":"2016-06-16T16:27:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cfengine/core/pulls/2628","html_url":"https://github.com/cfengine/core/pull/2628","diff_url":"https://github.com/cfengine/core/pull/2628.diff","patch_url":"https://github.com/cfengine/core/pull/2628.patch"},"body":"see https://tracker.mender.io/browse/CFE-2260\r\n\r\n* fixes the acceptance test (it was a bit broken before)\r\n* special-cases the FnCall `ifelse(\"!any\", ANYTHING, \"foo\")` to be allowed to evaluate even though `ANYTHING` may be an unexpanded variable. This is only done if `ifelse()` is called with exactly 3 arguments, but could be generalized fairly easily.\r\n\r\nUse case:\r\n\r\n```\r\nifelse( isvariable(\"init.passwd_file\"), $(init.passwd_file), \"/etc/passwd\")\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/cfengine/core/issues/comments/226538858","html_url":"https://github.com/cfengine/core/pull/2628#issuecomment-226538858","issue_url":"https://api.github.com/repos/cfengine/core/issues/2628","id":226538858,"user":{"login":"jimis","id":3584514,"avatar_url":"https://avatars.githubusercontent.com/u/3584514?v=3","gravatar_id":"","url":"https://api.github.com/users/jimis","html_url":"https://github.com/jimis","followers_url":"https://api.github.com/users/jimis/followers","following_url":"https://api.github.com/users/jimis/following{/other_user}","gists_url":"https://api.github.com/users/jimis/gists{/gist_id}","starred_url":"https://api.github.com/users/jimis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimis/subscriptions","organizations_url":"https://api.github.com/users/jimis/orgs","repos_url":"https://api.github.com/users/jimis/repos","events_url":"https://api.github.com/users/jimis/events{/privacy}","received_events_url":"https://api.github.com/users/jimis/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T16:27:17Z","updated_at":"2016-06-16T16:27:17Z","body":"trigger build"}}
{"actor":{"display_login":"jimis"}}