{"action":"closed","issue":{"url":"https://api.github.com/repos/saz/puppet-sudo/issues/145","repository_url":"https://api.github.com/repos/saz/puppet-sudo","labels_url":"https://api.github.com/repos/saz/puppet-sudo/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/saz/puppet-sudo/issues/145/comments","events_url":"https://api.github.com/repos/saz/puppet-sudo/issues/145/events","html_url":"https://github.com/saz/puppet-sudo/issues/145","id":118851261,"number":145,"title":"Unknown function hiera_hash","user":{"login":"ubellavance","id":4943465,"avatar_url":"https://avatars.githubusercontent.com/u/4943465?v=3","gravatar_id":"","url":"https://api.github.com/users/ubellavance","html_url":"https://github.com/ubellavance","followers_url":"https://api.github.com/users/ubellavance/followers","following_url":"https://api.github.com/users/ubellavance/following{/other_user}","gists_url":"https://api.github.com/users/ubellavance/gists{/gist_id}","starred_url":"https://api.github.com/users/ubellavance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubellavance/subscriptions","organizations_url":"https://api.github.com/users/ubellavance/orgs","repos_url":"https://api.github.com/users/ubellavance/repos","events_url":"https://api.github.com/users/ubellavance/events{/privacy}","received_events_url":"https://api.github.com/users/ubellavance/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-25T14:45:11Z","updated_at":"2016-04-25T18:07:41Z","closed_at":"2016-04-25T18:07:41Z","body":"Puppet v2.7.25 (server)\r\nPuppet 3.8 (client)\r\nsaz-sudo-3.1.0.tar.gz\r\nHiera - not installed\r\n\r\nError: Could not retrieve catalog from remote server: Error 400 on SERVER: Unknown function hiera_hash at /etc/puppet/modules/sudo/manifests/configs.pp:20 on node\r\n\r\nAs a quick workaround I've commented out the $configs = hiera_hash('sudo::configs', $configs_hash) line as the next line down is checking if $configs is empty.\r\n\r\nIs it possible to check if the hiera_hash function exists before calling it?\r\n\r\nThanks,"}}