{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/pulls/comments/38359351","id":38359351,"diff_hunk":"@@ -76,6 +76,13 @@ def munge_boolean(value)\n     raise ArgumentError.new \"invalid value: #{value}\"\n   end\n \n+  def munge_ensure(value)\n+    return 'absent' if value.downcase =~ (/^(absent|disable)$/i)\n+    return 'present' if value.downcase =~ (/^(present|enable)$/i)","path":"lib/puppet/provider/base_dsc/powershell.rb","position":6,"original_position":6,"commit_id":"fb0ff0cc17d89146db513f566b050ba93288a3ac","original_commit_id":"fb0ff0cc17d89146db513f566b050ba93288a3ac","user":{"login":"ferventcoder","id":63502,"avatar_url":"https://avatars.githubusercontent.com/u/63502?v=3","gravatar_id":"","url":"https://api.github.com/users/ferventcoder","html_url":"https://github.com/ferventcoder","followers_url":"https://api.github.com/users/ferventcoder/followers","following_url":"https://api.github.com/users/ferventcoder/following{/other_user}","gists_url":"https://api.github.com/users/ferventcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ferventcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferventcoder/subscriptions","organizations_url":"https://api.github.com/users/ferventcoder/orgs","repos_url":"https://api.github.com/users/ferventcoder/repos","events_url":"https://api.github.com/users/ferventcoder/events{/privacy}","received_events_url":"https://api.github.com/users/ferventcoder/received_events","type":"User","site_admin":false},"body":"Same comment as above.","created_at":"2015-08-31T21:04:37Z","updated_at":"2015-08-31T21:04:37Z","html_url":"https://github.com/puppetlabs/puppetlabs-dsc/pull/76#discussion_r38359351","pull_request_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/pulls/comments/38359351"},"html":{"href":"https://github.com/puppetlabs/puppetlabs-dsc/pull/76#discussion_r38359351"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/pulls/76","id":43670557,"html_url":"https://github.com/puppetlabs/puppetlabs-dsc/pull/76","diff_url":"https://github.com/puppetlabs/puppetlabs-dsc/pull/76.diff","patch_url":"https://github.com/puppetlabs/puppetlabs-dsc/pull/76.patch","issue_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/issues/76","number":76,"state":"open","locked":false,"title":"(DO NOT MERGE)(MODULES-2479) Allow Different Ensure Values","user":{"login":"jpogran","id":272569,"avatar_url":"https://avatars.githubusercontent.com/u/272569?v=3","gravatar_id":"","url":"https://api.github.com/users/jpogran","html_url":"https://github.com/jpogran","followers_url":"https://api.github.com/users/jpogran/followers","following_url":"https://api.github.com/users/jpogran/following{/other_user}","gists_url":"https://api.github.com/users/jpogran/gists{/gist_id}","starred_url":"https://api.github.com/users/jpogran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpogran/subscriptions","organizations_url":"https://api.github.com/users/jpogran/orgs","repos_url":"https://api.github.com/users/jpogran/repos","events_url":"https://api.github.com/users/jpogran/events{/privacy}","received_events_url":"https://api.github.com/users/jpogran/received_events","type":"User","site_admin":false},"body":"Some xDscResources use different values of Ensure than the standard\r\npresent/absent. Add new logic to detect when different values are used\r\nand use them for generating the type, the spec, and the powershell\r\nscript.","created_at":"2015-08-28T20:49:17Z","updated_at":"2015-08-31T21:04:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"539b055d086b91674547e9fcafa68af5593f5d49","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/pulls/76/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/pulls/76/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/issues/76/comments","statuses_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/statuses/fb0ff0cc17d89146db513f566b050ba93288a3ac","head":{"label":"jpogran:ticket/master/MODULES-2479-ensure-values","ref":"ticket/master/MODULES-2479-ensure-values","sha":"fb0ff0cc17d89146db513f566b050ba93288a3ac","user":{"login":"jpogran","id":272569,"avatar_url":"https://avatars.githubusercontent.com/u/272569?v=3","gravatar_id":"","url":"https://api.github.com/users/jpogran","html_url":"https://github.com/jpogran","followers_url":"https://api.github.com/users/jpogran/followers","following_url":"https://api.github.com/users/jpogran/following{/other_user}","gists_url":"https://api.github.com/users/jpogran/gists{/gist_id}","starred_url":"https://api.github.com/users/jpogran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpogran/subscriptions","organizations_url":"https://api.github.com/users/jpogran/orgs","repos_url":"https://api.github.com/users/jpogran/repos","events_url":"https://api.github.com/users/jpogran/events{/privacy}","received_events_url":"https://api.github.com/users/jpogran/received_events","type":"User","site_admin":false},"repo":{"id":37696508,"name":"puppetlabs-dsc","full_name":"jpogran/puppetlabs-dsc","owner":{"login":"jpogran","id":272569,"avatar_url":"https://avatars.githubusercontent.com/u/272569?v=3","gravatar_id":"","url":"https://api.github.com/users/jpogran","html_url":"https://github.com/jpogran","followers_url":"https://api.github.com/users/jpogran/followers","following_url":"https://api.github.com/users/jpogran/following{/other_user}","gists_url":"https://api.github.com/users/jpogran/gists{/gist_id}","starred_url":"https://api.github.com/users/jpogran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpogran/subscriptions","organizations_url":"https://api.github.com/users/jpogran/orgs","repos_url":"https://api.github.com/users/jpogran/repos","events_url":"https://api.github.com/users/jpogran/events{/privacy}","received_events_url":"https://api.github.com/users/jpogran/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jpogran/puppetlabs-dsc","description":"Puppet module for PowerShell Desired State Configuration (DSC) integration","fork":true,"url":"https://api.github.com/repos/jpogran/puppetlabs-dsc","forks_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/forks","keys_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/teams","hooks_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/hooks","issue_events_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/issues/events{/number}","events_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/events","assignees_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/assignees{/user}","branches_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/branches{/branch}","tags_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/tags","blobs_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/git/refs{/sha}","trees_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/statuses/{sha}","languages_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/languages","stargazers_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/stargazers","contributors_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/contributors","subscribers_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/subscribers","subscription_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/subscription","commits_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/commits{/sha}","git_commits_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/git/commits{/sha}","comments_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/comments{/number}","issue_comment_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/issues/comments{/number}","contents_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/contents/{+path}","compare_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/merges","archive_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/downloads","issues_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/issues{/number}","pulls_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/pulls{/number}","milestones_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/milestones{/number}","notifications_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/labels{/name}","releases_url":"https://api.github.com/repos/jpogran/puppetlabs-dsc/releases{/id}","created_at":"2015-06-19T02:10:54Z","updated_at":"2015-08-11T14:38:57Z","pushed_at":"2015-08-31T20:08:03Z","git_url":"git://github.com/jpogran/puppetlabs-dsc.git","ssh_url":"git@github.com:jpogran/puppetlabs-dsc.git","clone_url":"https://github.com/jpogran/puppetlabs-dsc.git","svn_url":"https://github.com/jpogran/puppetlabs-dsc","homepage":"","size":6503,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"puppetlabs:master","ref":"master","sha":"ec47229c10ae96d0d61b18745c52f352f701441e","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":21090303,"name":"puppetlabs-dsc","full_name":"puppetlabs/puppetlabs-dsc","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/puppetlabs-dsc","description":"Puppet module for PowerShell Desired State Configuration (DSC) integration","fork":false,"url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc","forks_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/forks","keys_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/teams","hooks_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/events","assignees_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/tags","blobs_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/subscription","commits_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/merges","archive_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/downloads","issues_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/releases{/id}","created_at":"2014-06-22T09:42:33Z","updated_at":"2015-08-06T15:29:06Z","pushed_at":"2015-08-31T20:08:04Z","git_url":"git://github.com/puppetlabs/puppetlabs-dsc.git","ssh_url":"git@github.com:puppetlabs/puppetlabs-dsc.git","clone_url":"https://github.com/puppetlabs/puppetlabs-dsc.git","svn_url":"https://github.com/puppetlabs/puppetlabs-dsc","homepage":"","size":7377,"stargazers_count":17,"watchers_count":17,"language":"PowerShell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":7,"forks":9,"open_issues":7,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/pulls/76"},"html":{"href":"https://github.com/puppetlabs/puppetlabs-dsc/pull/76"},"issue":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/issues/76"},"comments":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/puppetlabs-dsc/statuses/fb0ff0cc17d89146db513f566b050ba93288a3ac"}}}}