{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/datacentred/datacentred-runonce/pulls/2","id":55218060,"html_url":"https://github.com/datacentred/datacentred-runonce/pull/2","diff_url":"https://github.com/datacentred/datacentred-runonce/pull/2.diff","patch_url":"https://github.com/datacentred/datacentred-runonce/pull/2.patch","issue_url":"https://api.github.com/repos/datacentred/datacentred-runonce/issues/2","number":2,"state":"open","locked":false,"title":"Switch resource name instead of command","user":{"login":"dc-mattj","id":4425702,"avatar_url":"https://avatars.githubusercontent.com/u/4425702?v=3","gravatar_id":"","url":"https://api.github.com/users/dc-mattj","html_url":"https://github.com/dc-mattj","followers_url":"https://api.github.com/users/dc-mattj/followers","following_url":"https://api.github.com/users/dc-mattj/following{/other_user}","gists_url":"https://api.github.com/users/dc-mattj/gists{/gist_id}","starred_url":"https://api.github.com/users/dc-mattj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dc-mattj/subscriptions","organizations_url":"https://api.github.com/users/dc-mattj/orgs","repos_url":"https://api.github.com/users/dc-mattj/repos","events_url":"https://api.github.com/users/dc-mattj/events{/privacy}","received_events_url":"https://api.github.com/users/dc-mattj/received_events","type":"User","site_admin":false},"body":"Using command as the resource name can cause conflicts with other exec's defined in other modules - in my case it was apt-get update which is used in the apt module. Using the runonce name as the resource name means that you can have duplicate commands across the codebase.","created_at":"2016-01-06T14:28:53Z","updated_at":"2016-01-06T14:28:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2530ab7bbf63dfc47c1a4cda5bed3608a07464e5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/datacentred/datacentred-runonce/pulls/2/commits","review_comments_url":"https://api.github.com/repos/datacentred/datacentred-runonce/pulls/2/comments","review_comment_url":"https://api.github.com/repos/datacentred/datacentred-runonce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/datacentred/datacentred-runonce/issues/2/comments","statuses_url":"https://api.github.com/repos/datacentred/datacentred-runonce/statuses/66a4beaa8b74decf2656a96c2262bf973d982cf1","head":{"label":"datacentred:allow_duplicate_commands","ref":"allow_duplicate_commands","sha":"66a4beaa8b74decf2656a96c2262bf973d982cf1","user":{"login":"datacentred","id":4599530,"avatar_url":"https://avatars.githubusercontent.com/u/4599530?v=3","gravatar_id":"","url":"https://api.github.com/users/datacentred","html_url":"https://github.com/datacentred","followers_url":"https://api.github.com/users/datacentred/followers","following_url":"https://api.github.com/users/datacentred/following{/other_user}","gists_url":"https://api.github.com/users/datacentred/gists{/gist_id}","starred_url":"https://api.github.com/users/datacentred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datacentred/subscriptions","organizations_url":"https://api.github.com/users/datacentred/orgs","repos_url":"https://api.github.com/users/datacentred/repos","events_url":"https://api.github.com/users/datacentred/events{/privacy}","received_events_url":"https://api.github.com/users/datacentred/received_events","type":"Organization","site_admin":false},"repo":{"id":20928132,"name":"datacentred-runonce","full_name":"datacentred/datacentred-runonce","owner":{"login":"datacentred","id":4599530,"avatar_url":"https://avatars.githubusercontent.com/u/4599530?v=3","gravatar_id":"","url":"https://api.github.com/users/datacentred","html_url":"https://github.com/datacentred","followers_url":"https://api.github.com/users/datacentred/followers","following_url":"https://api.github.com/users/datacentred/following{/other_user}","gists_url":"https://api.github.com/users/datacentred/gists{/gist_id}","starred_url":"https://api.github.com/users/datacentred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datacentred/subscriptions","organizations_url":"https://api.github.com/users/datacentred/orgs","repos_url":"https://api.github.com/users/datacentred/repos","events_url":"https://api.github.com/users/datacentred/events{/privacy}","received_events_url":"https://api.github.com/users/datacentred/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datacentred/datacentred-runonce","description":"Utility class for handling exec's in  puppet","fork":false,"url":"https://api.github.com/repos/datacentred/datacentred-runonce","forks_url":"https://api.github.com/repos/datacentred/datacentred-runonce/forks","keys_url":"https://api.github.com/repos/datacentred/datacentred-runonce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datacentred/datacentred-runonce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datacentred/datacentred-runonce/teams","hooks_url":"https://api.github.com/repos/datacentred/datacentred-runonce/hooks","issue_events_url":"https://api.github.com/repos/datacentred/datacentred-runonce/issues/events{/number}","events_url":"https://api.github.com/repos/datacentred/datacentred-runonce/events","assignees_url":"https://api.github.com/repos/datacentred/datacentred-runonce/assignees{/user}","branches_url":"https://api.github.com/repos/datacentred/datacentred-runonce/branches{/branch}","tags_url":"https://api.github.com/repos/datacentred/datacentred-runonce/tags","blobs_url":"https://api.github.com/repos/datacentred/datacentred-runonce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datacentred/datacentred-runonce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datacentred/datacentred-runonce/git/refs{/sha}","trees_url":"https://api.github.com/repos/datacentred/datacentred-runonce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datacentred/datacentred-runonce/statuses/{sha}","languages_url":"https://api.github.com/repos/datacentred/datacentred-runonce/languages","stargazers_url":"https://api.github.com/repos/datacentred/datacentred-runonce/stargazers","contributors_url":"https://api.github.com/repos/datacentred/datacentred-runonce/contributors","subscribers_url":"https://api.github.com/repos/datacentred/datacentred-runonce/subscribers","subscription_url":"https://api.github.com/repos/datacentred/datacentred-runonce/subscription","commits_url":"https://api.github.com/repos/datacentred/datacentred-runonce/commits{/sha}","git_commits_url":"https://api.github.com/repos/datacentred/datacentred-runonce/git/commits{/sha}","comments_url":"https://api.github.com/repos/datacentred/datacentred-runonce/comments{/number}","issue_comment_url":"https://api.github.com/repos/datacentred/datacentred-runonce/issues/comments{/number}","contents_url":"https://api.github.com/repos/datacentred/datacentred-runonce/contents/{+path}","compare_url":"https://api.github.com/repos/datacentred/datacentred-runonce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datacentred/datacentred-runonce/merges","archive_url":"https://api.github.com/repos/datacentred/datacentred-runonce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datacentred/datacentred-runonce/downloads","issues_url":"https://api.github.com/repos/datacentred/datacentred-runonce/issues{/number}","pulls_url":"https://api.github.com/repos/datacentred/datacentred-runonce/pulls{/number}","milestones_url":"https://api.github.com/repos/datacentred/datacentred-runonce/milestones{/number}","notifications_url":"https://api.github.com/repos/datacentred/datacentred-runonce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datacentred/datacentred-runonce/labels{/name}","releases_url":"https://api.github.com/repos/datacentred/datacentred-runonce/releases{/id}","created_at":"2014-06-17T15:06:55Z","updated_at":"2014-09-19T13:58:43Z","pushed_at":"2016-01-06T14:28:53Z","git_url":"git://github.com/datacentred/datacentred-runonce.git","ssh_url":"git@github.com:datacentred/datacentred-runonce.git","clone_url":"https://github.com/datacentred/datacentred-runonce.git","svn_url":"https://github.com/datacentred/datacentred-runonce","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Puppet","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"datacentred:master","ref":"master","sha":"89663e99686e8b5987ffedea7f9e44e678c49f4d","user":{"login":"datacentred","id":4599530,"avatar_url":"https://avatars.githubusercontent.com/u/4599530?v=3","gravatar_id":"","url":"https://api.github.com/users/datacentred","html_url":"https://github.com/datacentred","followers_url":"https://api.github.com/users/datacentred/followers","following_url":"https://api.github.com/users/datacentred/following{/other_user}","gists_url":"https://api.github.com/users/datacentred/gists{/gist_id}","starred_url":"https://api.github.com/users/datacentred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datacentred/subscriptions","organizations_url":"https://api.github.com/users/datacentred/orgs","repos_url":"https://api.github.com/users/datacentred/repos","events_url":"https://api.github.com/users/datacentred/events{/privacy}","received_events_url":"https://api.github.com/users/datacentred/received_events","type":"Organization","site_admin":false},"repo":{"id":20928132,"name":"datacentred-runonce","full_name":"datacentred/datacentred-runonce","owner":{"login":"datacentred","id":4599530,"avatar_url":"https://avatars.githubusercontent.com/u/4599530?v=3","gravatar_id":"","url":"https://api.github.com/users/datacentred","html_url":"https://github.com/datacentred","followers_url":"https://api.github.com/users/datacentred/followers","following_url":"https://api.github.com/users/datacentred/following{/other_user}","gists_url":"https://api.github.com/users/datacentred/gists{/gist_id}","starred_url":"https://api.github.com/users/datacentred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datacentred/subscriptions","organizations_url":"https://api.github.com/users/datacentred/orgs","repos_url":"https://api.github.com/users/datacentred/repos","events_url":"https://api.github.com/users/datacentred/events{/privacy}","received_events_url":"https://api.github.com/users/datacentred/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datacentred/datacentred-runonce","description":"Utility class for handling exec's in  puppet","fork":false,"url":"https://api.github.com/repos/datacentred/datacentred-runonce","forks_url":"https://api.github.com/repos/datacentred/datacentred-runonce/forks","keys_url":"https://api.github.com/repos/datacentred/datacentred-runonce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datacentred/datacentred-runonce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datacentred/datacentred-runonce/teams","hooks_url":"https://api.github.com/repos/datacentred/datacentred-runonce/hooks","issue_events_url":"https://api.github.com/repos/datacentred/datacentred-runonce/issues/events{/number}","events_url":"https://api.github.com/repos/datacentred/datacentred-runonce/events","assignees_url":"https://api.github.com/repos/datacentred/datacentred-runonce/assignees{/user}","branches_url":"https://api.github.com/repos/datacentred/datacentred-runonce/branches{/branch}","tags_url":"https://api.github.com/repos/datacentred/datacentred-runonce/tags","blobs_url":"https://api.github.com/repos/datacentred/datacentred-runonce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datacentred/datacentred-runonce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datacentred/datacentred-runonce/git/refs{/sha}","trees_url":"https://api.github.com/repos/datacentred/datacentred-runonce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datacentred/datacentred-runonce/statuses/{sha}","languages_url":"https://api.github.com/repos/datacentred/datacentred-runonce/languages","stargazers_url":"https://api.github.com/repos/datacentred/datacentred-runonce/stargazers","contributors_url":"https://api.github.com/repos/datacentred/datacentred-runonce/contributors","subscribers_url":"https://api.github.com/repos/datacentred/datacentred-runonce/subscribers","subscription_url":"https://api.github.com/repos/datacentred/datacentred-runonce/subscription","commits_url":"https://api.github.com/repos/datacentred/datacentred-runonce/commits{/sha}","git_commits_url":"https://api.github.com/repos/datacentred/datacentred-runonce/git/commits{/sha}","comments_url":"https://api.github.com/repos/datacentred/datacentred-runonce/comments{/number}","issue_comment_url":"https://api.github.com/repos/datacentred/datacentred-runonce/issues/comments{/number}","contents_url":"https://api.github.com/repos/datacentred/datacentred-runonce/contents/{+path}","compare_url":"https://api.github.com/repos/datacentred/datacentred-runonce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datacentred/datacentred-runonce/merges","archive_url":"https://api.github.com/repos/datacentred/datacentred-runonce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datacentred/datacentred-runonce/downloads","issues_url":"https://api.github.com/repos/datacentred/datacentred-runonce/issues{/number}","pulls_url":"https://api.github.com/repos/datacentred/datacentred-runonce/pulls{/number}","milestones_url":"https://api.github.com/repos/datacentred/datacentred-runonce/milestones{/number}","notifications_url":"https://api.github.com/repos/datacentred/datacentred-runonce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datacentred/datacentred-runonce/labels{/name}","releases_url":"https://api.github.com/repos/datacentred/datacentred-runonce/releases{/id}","created_at":"2014-06-17T15:06:55Z","updated_at":"2014-09-19T13:58:43Z","pushed_at":"2016-01-06T14:28:53Z","git_url":"git://github.com/datacentred/datacentred-runonce.git","ssh_url":"git@github.com:datacentred/datacentred-runonce.git","clone_url":"https://github.com/datacentred/datacentred-runonce.git","svn_url":"https://github.com/datacentred/datacentred-runonce","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Puppet","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/datacentred/datacentred-runonce/pulls/2"},"html":{"href":"https://github.com/datacentred/datacentred-runonce/pull/2"},"issue":{"href":"https://api.github.com/repos/datacentred/datacentred-runonce/issues/2"},"comments":{"href":"https://api.github.com/repos/datacentred/datacentred-runonce/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/datacentred/datacentred-runonce/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/datacentred/datacentred-runonce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/datacentred/datacentred-runonce/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/datacentred/datacentred-runonce/statuses/66a4beaa8b74decf2656a96c2262bf973d982cf1"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":4,"changed_files":1}}