{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/pulls/5","id":42081289,"html_url":"https://github.com/puppetlabs/prosvcs-node_manager/pull/5","diff_url":"https://github.com/puppetlabs/prosvcs-node_manager/pull/5.diff","patch_url":"https://github.com/puppetlabs/prosvcs-node_manager/pull/5.patch","issue_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/issues/5","number":5,"state":"open","locked":false,"title":"Fixes for create node groups, v1.0 API (4.2.1) - environment_trumps","user":{"login":"zoojar","id":1691082,"avatar_url":"https://avatars.githubusercontent.com/u/1691082?v=3","gravatar_id":"","url":"https://api.github.com/users/zoojar","html_url":"https://github.com/zoojar","followers_url":"https://api.github.com/users/zoojar/followers","following_url":"https://api.github.com/users/zoojar/following{/other_user}","gists_url":"https://api.github.com/users/zoojar/gists{/gist_id}","starred_url":"https://api.github.com/users/zoojar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoojar/subscriptions","organizations_url":"https://api.github.com/users/zoojar/orgs","repos_url":"https://api.github.com/users/zoojar/repos","events_url":"https://api.github.com/users/zoojar/events{/privacy}","received_events_url":"https://api.github.com/users/zoojar/received_events","type":"User","site_admin":false},"body":"An error occured creating the group: HTTP 400 Bad Request\r\n``` \r\nError: puppetclassify was not able to create group\r\nError: /Stage[main]/Profile::Master_classifier/Node_group[this will fail]/ensure: change from absent to present failed: puppetclassify was not able to create group\r\n```\r\nThe malformed request contains invalid key which is one of the friendly keys: override_environment\r\nhttps://docs.puppetlabs.com/pe/latest/nc_groups.html#post-v1groups  specifies \"environment_trumps\".\r\n\r\n(Although this is still soft failing at updating non-existing groups [something to do with flushing, a 404 is returned on the first run - subsequent runs are fine - I can't yet see where it's failing - some where here ->  \r\n``` \r\ndef flush\r\n    debug @property_flush['attrs']\r\n    if @property_flush['attrs']\r\n      @property_flush['attrs']['id'] = @property_hash[:id] unless @property_flush['attrs']['id']\r\n      begin\r\n        $puppetclassify.groups.update_group(@property_flush['attrs'])\r\n      rescue Exception => e\r\n        fail(e.message)\r\n        debug(e.backtrace.inspect)\r\n      else).\r\n``` ","created_at":"2015-08-11T00:27:01Z","updated_at":"2015-08-11T00:27:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/pulls/5/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/pulls/5/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/issues/5/comments","statuses_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/statuses/23c246659dd0e56099354c2fc2d066e7e889b8a0","head":{"label":"zoojar:master","ref":"master","sha":"23c246659dd0e56099354c2fc2d066e7e889b8a0","user":{"login":"zoojar","id":1691082,"avatar_url":"https://avatars.githubusercontent.com/u/1691082?v=3","gravatar_id":"","url":"https://api.github.com/users/zoojar","html_url":"https://github.com/zoojar","followers_url":"https://api.github.com/users/zoojar/followers","following_url":"https://api.github.com/users/zoojar/following{/other_user}","gists_url":"https://api.github.com/users/zoojar/gists{/gist_id}","starred_url":"https://api.github.com/users/zoojar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoojar/subscriptions","organizations_url":"https://api.github.com/users/zoojar/orgs","repos_url":"https://api.github.com/users/zoojar/repos","events_url":"https://api.github.com/users/zoojar/events{/privacy}","received_events_url":"https://api.github.com/users/zoojar/received_events","type":"User","site_admin":false},"repo":{"id":40511740,"name":"prosvcs-node_manager","full_name":"zoojar/prosvcs-node_manager","owner":{"login":"zoojar","id":1691082,"avatar_url":"https://avatars.githubusercontent.com/u/1691082?v=3","gravatar_id":"","url":"https://api.github.com/users/zoojar","html_url":"https://github.com/zoojar","followers_url":"https://api.github.com/users/zoojar/followers","following_url":"https://api.github.com/users/zoojar/following{/other_user}","gists_url":"https://api.github.com/users/zoojar/gists{/gist_id}","starred_url":"https://api.github.com/users/zoojar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoojar/subscriptions","organizations_url":"https://api.github.com/users/zoojar/orgs","repos_url":"https://api.github.com/users/zoojar/repos","events_url":"https://api.github.com/users/zoojar/events{/privacy}","received_events_url":"https://api.github.com/users/zoojar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zoojar/prosvcs-node_manager","description":"","fork":true,"url":"https://api.github.com/repos/zoojar/prosvcs-node_manager","forks_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/forks","keys_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/teams","hooks_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/hooks","issue_events_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/issues/events{/number}","events_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/events","assignees_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/assignees{/user}","branches_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/branches{/branch}","tags_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/tags","blobs_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/statuses/{sha}","languages_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/languages","stargazers_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/stargazers","contributors_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/contributors","subscribers_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/subscribers","subscription_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/subscription","commits_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/contents/{+path}","compare_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/merges","archive_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/downloads","issues_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/issues{/number}","pulls_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/pulls{/number}","milestones_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/milestones{/number}","notifications_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/labels{/name}","releases_url":"https://api.github.com/repos/zoojar/prosvcs-node_manager/releases{/id}","created_at":"2015-08-10T23:52:06Z","updated_at":"2015-08-10T23:52:06Z","pushed_at":"2015-08-11T00:13:35Z","git_url":"git://github.com/zoojar/prosvcs-node_manager.git","ssh_url":"git@github.com:zoojar/prosvcs-node_manager.git","clone_url":"https://github.com/zoojar/prosvcs-node_manager.git","svn_url":"https://github.com/zoojar/prosvcs-node_manager","homepage":null,"size":141,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"a53f43f807514d4d4f74ffb921d1d85c4e0b03e4","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":29281972,"name":"prosvcs-node_manager","full_name":"puppetlabs/prosvcs-node_manager","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/prosvcs-node_manager","description":"","fork":false,"url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager","forks_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/forks","keys_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/teams","hooks_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/events","assignees_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/tags","blobs_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/subscription","commits_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/merges","archive_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/downloads","issues_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/releases{/id}","created_at":"2015-01-15T05:14:34Z","updated_at":"2015-06-10T16:37:27Z","pushed_at":"2015-05-22T18:58:08Z","git_url":"git://github.com/puppetlabs/prosvcs-node_manager.git","ssh_url":"git@github.com:puppetlabs/prosvcs-node_manager.git","clone_url":"https://github.com/puppetlabs/prosvcs-node_manager.git","svn_url":"https://github.com/puppetlabs/prosvcs-node_manager","homepage":null,"size":460,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":4,"forks":8,"open_issues":4,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/pulls/5"},"html":{"href":"https://github.com/puppetlabs/prosvcs-node_manager/pull/5"},"issue":{"href":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/issues/5"},"comments":{"href":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/prosvcs-node_manager/statuses/23c246659dd0e56099354c2fc2d066e7e889b8a0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":2,"changed_files":1}}