{"action":"opened","number":479,"pull_request":{"url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/pulls/479","id":207950211,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3OTUwMjEx","html_url":"https://github.com/voxpupuli/puppet-mongodb/pull/479","diff_url":"https://github.com/voxpupuli/puppet-mongodb/pull/479.diff","patch_url":"https://github.com/voxpupuli/puppet-mongodb/pull/479.patch","issue_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/issues/479","number":479,"state":"open","locked":false,"title":"catch errors based on missing authentication to allow creation of admin user on replicaset setup","user":{"login":"Henning-B","id":3657048,"node_id":"MDQ6VXNlcjM2NTcwNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/3657048?v=4","gravatar_id":"","url":"https://api.github.com/users/Henning-B","html_url":"https://github.com/Henning-B","followers_url":"https://api.github.com/users/Henning-B/followers","following_url":"https://api.github.com/users/Henning-B/following{/other_user}","gists_url":"https://api.github.com/users/Henning-B/gists{/gist_id}","starred_url":"https://api.github.com/users/Henning-B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Henning-B/subscriptions","organizations_url":"https://api.github.com/users/Henning-B/orgs","repos_url":"https://api.github.com/users/Henning-B/repos","events_url":"https://api.github.com/users/Henning-B/events{/privacy}","received_events_url":"https://api.github.com/users/Henning-B/received_events","type":"User","site_admin":false},"body":"#### Pull Request (PR) description\r\nWhen setting up a new replica set with authentication enabled the puppet run fails because some exceptions were not caught properly, when getting the user and database instances. When checking if the mongodb is a primary node a recheck without authentication is done to be able to create the admin user.\r\n\r\n#### This Pull Request (PR) fixes the following issues\r\n<!--\r\n    Replace this comment with the list of issues or n/a.\r\n    Use format:\r\n    Fixes #123\r\n    Fixes #124\r\n-->\r\n","created_at":"2018-08-13T11:40:46Z","updated_at":"2018-08-13T11:40:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/pulls/479/commits","review_comments_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/pulls/479/comments","review_comment_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/issues/479/comments","statuses_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/statuses/a0dd29f76db22f80aaee80b23e90b715f8482c1b","head":{"label":"parship:mongodb","ref":"mongodb","sha":"a0dd29f76db22f80aaee80b23e90b715f8482c1b","user":{"login":"parship","id":4079959,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNzk5NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/4079959?v=4","gravatar_id":"","url":"https://api.github.com/users/parship","html_url":"https://github.com/parship","followers_url":"https://api.github.com/users/parship/followers","following_url":"https://api.github.com/users/parship/following{/other_user}","gists_url":"https://api.github.com/users/parship/gists{/gist_id}","starred_url":"https://api.github.com/users/parship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parship/subscriptions","organizations_url":"https://api.github.com/users/parship/orgs","repos_url":"https://api.github.com/users/parship/repos","events_url":"https://api.github.com/users/parship/events{/privacy}","received_events_url":"https://api.github.com/users/parship/received_events","type":"Organization","site_admin":false},"repo":{"id":54573244,"node_id":"MDEwOlJlcG9zaXRvcnk1NDU3MzI0NA==","name":"puppetlabs-mongodb","full_name":"parship/puppetlabs-mongodb","owner":{"login":"parship","id":4079959,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwNzk5NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/4079959?v=4","gravatar_id":"","url":"https://api.github.com/users/parship","html_url":"https://github.com/parship","followers_url":"https://api.github.com/users/parship/followers","following_url":"https://api.github.com/users/parship/following{/other_user}","gists_url":"https://api.github.com/users/parship/gists{/gist_id}","starred_url":"https://api.github.com/users/parship/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parship/subscriptions","organizations_url":"https://api.github.com/users/parship/orgs","repos_url":"https://api.github.com/users/parship/repos","events_url":"https://api.github.com/users/parship/events{/privacy}","received_events_url":"https://api.github.com/users/parship/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/parship/puppetlabs-mongodb","description":"mongodb installation","fork":true,"url":"https://api.github.com/repos/parship/puppetlabs-mongodb","forks_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/forks","keys_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/teams","hooks_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/hooks","issue_events_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/events","assignees_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/tags","blobs_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/languages","stargazers_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/stargazers","contributors_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/contributors","subscribers_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/subscribers","subscription_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/subscription","commits_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/merges","archive_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/downloads","issues_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/releases{/id}","deployments_url":"https://api.github.com/repos/parship/puppetlabs-mongodb/deployments","created_at":"2016-03-23T15:57:03Z","updated_at":"2017-01-12T17:54:33Z","pushed_at":"2018-08-13T11:37:22Z","git_url":"git://github.com/parship/puppetlabs-mongodb.git","ssh_url":"git@github.com:parship/puppetlabs-mongodb.git","clone_url":"https://github.com/parship/puppetlabs-mongodb.git","svn_url":"https://github.com/parship/puppetlabs-mongodb","homepage":null,"size":836,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"voxpupuli:master","ref":"master","sha":"2971ed72b7985f83ed1d7817d9268c472c043d91","user":{"login":"voxpupuli","id":8693967,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2OTM5Njc=","avatar_url":"https://avatars3.githubusercontent.com/u/8693967?v=4","gravatar_id":"","url":"https://api.github.com/users/voxpupuli","html_url":"https://github.com/voxpupuli","followers_url":"https://api.github.com/users/voxpupuli/followers","following_url":"https://api.github.com/users/voxpupuli/following{/other_user}","gists_url":"https://api.github.com/users/voxpupuli/gists{/gist_id}","starred_url":"https://api.github.com/users/voxpupuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxpupuli/subscriptions","organizations_url":"https://api.github.com/users/voxpupuli/orgs","repos_url":"https://api.github.com/users/voxpupuli/repos","events_url":"https://api.github.com/users/voxpupuli/events{/privacy}","received_events_url":"https://api.github.com/users/voxpupuli/received_events","type":"Organization","site_admin":false},"repo":{"id":4118136,"node_id":"MDEwOlJlcG9zaXRvcnk0MTE4MTM2","name":"puppet-mongodb","full_name":"voxpupuli/puppet-mongodb","owner":{"login":"voxpupuli","id":8693967,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2OTM5Njc=","avatar_url":"https://avatars3.githubusercontent.com/u/8693967?v=4","gravatar_id":"","url":"https://api.github.com/users/voxpupuli","html_url":"https://github.com/voxpupuli","followers_url":"https://api.github.com/users/voxpupuli/followers","following_url":"https://api.github.com/users/voxpupuli/following{/other_user}","gists_url":"https://api.github.com/users/voxpupuli/gists{/gist_id}","starred_url":"https://api.github.com/users/voxpupuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxpupuli/subscriptions","organizations_url":"https://api.github.com/users/voxpupuli/orgs","repos_url":"https://api.github.com/users/voxpupuli/repos","events_url":"https://api.github.com/users/voxpupuli/events{/privacy}","received_events_url":"https://api.github.com/users/voxpupuli/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/voxpupuli/puppet-mongodb","description":"mongodb installation","fork":false,"url":"https://api.github.com/repos/voxpupuli/puppet-mongodb","forks_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/forks","keys_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/teams","hooks_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/hooks","issue_events_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/events","assignees_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/tags","blobs_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/languages","stargazers_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/stargazers","contributors_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/contributors","subscribers_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/subscribers","subscription_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/subscription","commits_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/merges","archive_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/downloads","issues_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/releases{/id}","deployments_url":"https://api.github.com/repos/voxpupuli/puppet-mongodb/deployments","created_at":"2012-04-23T21:28:15Z","updated_at":"2018-07-25T20:09:50Z","pushed_at":"2018-08-02T11:33:56Z","git_url":"git://github.com/voxpupuli/puppet-mongodb.git","ssh_url":"git@github.com:voxpupuli/puppet-mongodb.git","clone_url":"https://github.com/voxpupuli/puppet-mongodb.git","svn_url":"https://github.com/voxpupuli/puppet-mongodb","homepage":null,"size":808,"stargazers_count":84,"watchers_count":84,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":407,"mirror_url":null,"archived":false,"open_issues_count":42,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":407,"open_issues":42,"watchers":84,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/voxpupuli/puppet-mongodb/pulls/479"},"html":{"href":"https://github.com/voxpupuli/puppet-mongodb/pull/479"},"issue":{"href":"https://api.github.com/repos/voxpupuli/puppet-mongodb/issues/479"},"comments":{"href":"https://api.github.com/repos/voxpupuli/puppet-mongodb/issues/479/comments"},"review_comments":{"href":"https://api.github.com/repos/voxpupuli/puppet-mongodb/pulls/479/comments"},"review_comment":{"href":"https://api.github.com/repos/voxpupuli/puppet-mongodb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/voxpupuli/puppet-mongodb/pulls/479/commits"},"statuses":{"href":"https://api.github.com/repos/voxpupuli/puppet-mongodb/statuses/a0dd29f76db22f80aaee80b23e90b715f8482c1b"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":36,"deletions":23,"changed_files":3}}
{"actor":{"display_login":"Henning-B"}}