{"action":"closed","issue":{"url":"https://api.github.com/repos/natemccurdy/puppet-purge_node/issues/2","repository_url":"https://api.github.com/repos/natemccurdy/puppet-purge_node","labels_url":"https://api.github.com/repos/natemccurdy/puppet-purge_node/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/natemccurdy/puppet-purge_node/issues/2/comments","events_url":"https://api.github.com/repos/natemccurdy/puppet-purge_node/issues/2/events","html_url":"https://github.com/natemccurdy/puppet-purge_node/issues/2","id":332577272,"node_id":"MDU6SXNzdWUzMzI1NzcyNzI=","number":2,"title":"Find a better way to detect a Puppet master","user":{"login":"natemccurdy","id":10200384,"node_id":"MDQ6VXNlcjEwMjAwMzg0","avatar_url":"https://avatars2.githubusercontent.com/u/10200384?v=4","gravatar_id":"","url":"https://api.github.com/users/natemccurdy","html_url":"https://github.com/natemccurdy","followers_url":"https://api.github.com/users/natemccurdy/followers","following_url":"https://api.github.com/users/natemccurdy/following{/other_user}","gists_url":"https://api.github.com/users/natemccurdy/gists{/gist_id}","starred_url":"https://api.github.com/users/natemccurdy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemccurdy/subscriptions","organizations_url":"https://api.github.com/users/natemccurdy/orgs","repos_url":"https://api.github.com/users/natemccurdy/repos","events_url":"https://api.github.com/users/natemccurdy/events{/privacy}","received_events_url":"https://api.github.com/users/natemccurdy/received_events","type":"User","site_admin":false},"labels":[{"id":815632586,"node_id":"MDU6TGFiZWw4MTU2MzI1ODY=","url":"https://api.github.com/repos/natemccurdy/puppet-purge_node/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-14T21:52:10Z","updated_at":"2018-09-20T17:27:55Z","closed_at":"2018-09-20T17:27:55Z","author_association":"OWNER","body":"The current logic to detect if the task is being run on a the primary master doesn't account for some edge cases. For example, when using SRV records and the value for `server` **does not** equal `certname`.\r\n\r\nhttps://github.com/natemccurdy/puppet-purge_node/blob/1.2.0/tasks/init.rb#L14\r\n\r\nFind a better way to figure this out."}}
{"actor":{"display_login":"natemccurdy"}}