{"action":"closed","number":12431,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/12431","id":45354535,"html_url":"https://github.com/ansible/ansible/pull/12431","diff_url":"https://github.com/ansible/ansible/pull/12431.diff","patch_url":"https://github.com/ansible/ansible/pull/12431.patch","issue_url":"https://api.github.com/repos/ansible/ansible/issues/12431","number":12431,"state":"closed","locked":false,"title":"Stops using _groups_list to check for host when using 'add_host'","user":{"login":"hslee16","id":3871876,"avatar_url":"https://avatars.githubusercontent.com/u/3871876?v=3","gravatar_id":"","url":"https://api.github.com/users/hslee16","html_url":"https://github.com/hslee16","followers_url":"https://api.github.com/users/hslee16/followers","following_url":"https://api.github.com/users/hslee16/following{/other_user}","gists_url":"https://api.github.com/users/hslee16/gists{/gist_id}","starred_url":"https://api.github.com/users/hslee16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hslee16/subscriptions","organizations_url":"https://api.github.com/users/hslee16/orgs","repos_url":"https://api.github.com/users/hslee16/repos","events_url":"https://api.github.com/users/hslee16/events{/privacy}","received_events_url":"https://api.github.com/users/hslee16/received_events","type":"User","site_admin":false},"body":"May be related to https://github.com/ansible/ansible/issues/11957\r\n\r\nUsing the 'add_host' function in current devel branch causes playbooks to return exceptions stating \r\n\r\nInventory has no attribute '_groups_list'\r\n\r\nThis PR aims to use the existing attribute in the inventory and groups objects to work around this issue.\r\n\r\n\r\n[EDIT]\r\nFor context, I am using 'add_host' in the following manner\r\n\r\n```\r\n- name: Add instance IP to new hosts group\r\n  add_host: name=192.168.30.31 groupname=my_host_ip\r\n```\r\n","created_at":"2015-09-17T23:31:09Z","updated_at":"2015-09-20T22:17:03Z","closed_at":"2015-09-20T22:17:03Z","merged_at":"2015-09-20T22:17:02Z","merge_commit_sha":"79cf0a22aa4a7b870c69943c5fb4e0aa259fd600","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible/pulls/12431/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible/pulls/12431/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/12431/comments","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/cf289191e58ad9ef4e547bbd55405394fe02f779","head":{"label":"hslee16:devel","ref":"devel","sha":"cf289191e58ad9ef4e547bbd55405394fe02f779","user":{"login":"hslee16","id":3871876,"avatar_url":"https://avatars.githubusercontent.com/u/3871876?v=3","gravatar_id":"","url":"https://api.github.com/users/hslee16","html_url":"https://github.com/hslee16","followers_url":"https://api.github.com/users/hslee16/followers","following_url":"https://api.github.com/users/hslee16/following{/other_user}","gists_url":"https://api.github.com/users/hslee16/gists{/gist_id}","starred_url":"https://api.github.com/users/hslee16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hslee16/subscriptions","organizations_url":"https://api.github.com/users/hslee16/orgs","repos_url":"https://api.github.com/users/hslee16/repos","events_url":"https://api.github.com/users/hslee16/events{/privacy}","received_events_url":"https://api.github.com/users/hslee16/received_events","type":"User","site_admin":false},"repo":{"id":42685951,"name":"ansible","full_name":"hslee16/ansible","owner":{"login":"hslee16","id":3871876,"avatar_url":"https://avatars.githubusercontent.com/u/3871876?v=3","gravatar_id":"","url":"https://api.github.com/users/hslee16","html_url":"https://github.com/hslee16","followers_url":"https://api.github.com/users/hslee16/followers","following_url":"https://api.github.com/users/hslee16/following{/other_user}","gists_url":"https://api.github.com/users/hslee16/gists{/gist_id}","starred_url":"https://api.github.com/users/hslee16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hslee16/subscriptions","organizations_url":"https://api.github.com/users/hslee16/orgs","repos_url":"https://api.github.com/users/hslee16/repos","events_url":"https://api.github.com/users/hslee16/events{/privacy}","received_events_url":"https://api.github.com/users/hslee16/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hslee16/ansible","description":"Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.","fork":true,"url":"https://api.github.com/repos/hslee16/ansible","forks_url":"https://api.github.com/repos/hslee16/ansible/forks","keys_url":"https://api.github.com/repos/hslee16/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hslee16/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hslee16/ansible/teams","hooks_url":"https://api.github.com/repos/hslee16/ansible/hooks","issue_events_url":"https://api.github.com/repos/hslee16/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/hslee16/ansible/events","assignees_url":"https://api.github.com/repos/hslee16/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/hslee16/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/hslee16/ansible/tags","blobs_url":"https://api.github.com/repos/hslee16/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hslee16/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hslee16/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/hslee16/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hslee16/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/hslee16/ansible/languages","stargazers_url":"https://api.github.com/repos/hslee16/ansible/stargazers","contributors_url":"https://api.github.com/repos/hslee16/ansible/contributors","subscribers_url":"https://api.github.com/repos/hslee16/ansible/subscribers","subscription_url":"https://api.github.com/repos/hslee16/ansible/subscription","commits_url":"https://api.github.com/repos/hslee16/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/hslee16/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/hslee16/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/hslee16/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/hslee16/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/hslee16/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hslee16/ansible/merges","archive_url":"https://api.github.com/repos/hslee16/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hslee16/ansible/downloads","issues_url":"https://api.github.com/repos/hslee16/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/hslee16/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/hslee16/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/hslee16/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hslee16/ansible/labels{/name}","releases_url":"https://api.github.com/repos/hslee16/ansible/releases{/id}","created_at":"2015-09-17T22:45:24Z","updated_at":"2015-09-17T22:45:30Z","pushed_at":"2015-09-17T22:58:13Z","git_url":"git://github.com/hslee16/ansible.git","ssh_url":"git@github.com:hslee16/ansible.git","clone_url":"https://github.com/hslee16/ansible.git","svn_url":"https://github.com/hslee16/ansible","homepage":"http://ansible.com/","size":35422,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"cc6627cdd63552fe9a2158065fb5cf5e7540c4e4","user":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"repo":{"id":3638964,"name":"ansible","full_name":"ansible/ansible","owner":{"login":"ansible","id":1507452,"avatar_url":"https://avatars.githubusercontent.com/u/1507452?v=3","gravatar_id":"","url":"https://api.github.com/users/ansible","html_url":"https://github.com/ansible","followers_url":"https://api.github.com/users/ansible/followers","following_url":"https://api.github.com/users/ansible/following{/other_user}","gists_url":"https://api.github.com/users/ansible/gists{/gist_id}","starred_url":"https://api.github.com/users/ansible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansible/subscriptions","organizations_url":"https://api.github.com/users/ansible/orgs","repos_url":"https://api.github.com/users/ansible/repos","events_url":"https://api.github.com/users/ansible/events{/privacy}","received_events_url":"https://api.github.com/users/ansible/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ansible/ansible","description":"Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.","fork":false,"url":"https://api.github.com/repos/ansible/ansible","forks_url":"https://api.github.com/repos/ansible/ansible/forks","keys_url":"https://api.github.com/repos/ansible/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible/teams","hooks_url":"https://api.github.com/repos/ansible/ansible/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible/events","assignees_url":"https://api.github.com/repos/ansible/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible/tags","blobs_url":"https://api.github.com/repos/ansible/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible/subscription","commits_url":"https://api.github.com/repos/ansible/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible/merges","archive_url":"https://api.github.com/repos/ansible/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible/downloads","issues_url":"https://api.github.com/repos/ansible/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible/releases{/id}","created_at":"2012-03-06T14:58:02Z","updated_at":"2015-09-20T21:29:48Z","pushed_at":"2015-09-20T22:17:02Z","git_url":"git://github.com/ansible/ansible.git","ssh_url":"git@github.com:ansible/ansible.git","clone_url":"https://github.com/ansible/ansible.git","svn_url":"https://github.com/ansible/ansible","homepage":"http://ansible.com/","size":246809,"stargazers_count":12744,"watchers_count":12744,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3795,"mirror_url":null,"open_issues_count":735,"forks":3795,"open_issues":735,"watchers":12744,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible/pulls/12431"},"html":{"href":"https://github.com/ansible/ansible/pull/12431"},"issue":{"href":"https://api.github.com/repos/ansible/ansible/issues/12431"},"comments":{"href":"https://api.github.com/repos/ansible/ansible/issues/12431/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible/pulls/12431/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible/pulls/12431/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible/statuses/cf289191e58ad9ef4e547bbd55405394fe02f779"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jimi-c","id":26403,"avatar_url":"https://avatars.githubusercontent.com/u/26403?v=3","gravatar_id":"","url":"https://api.github.com/users/jimi-c","html_url":"https://github.com/jimi-c","followers_url":"https://api.github.com/users/jimi-c/followers","following_url":"https://api.github.com/users/jimi-c/following{/other_user}","gists_url":"https://api.github.com/users/jimi-c/gists{/gist_id}","starred_url":"https://api.github.com/users/jimi-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimi-c/subscriptions","organizations_url":"https://api.github.com/users/jimi-c/orgs","repos_url":"https://api.github.com/users/jimi-c/repos","events_url":"https://api.github.com/users/jimi-c/events{/privacy}","received_events_url":"https://api.github.com/users/jimi-c/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":8,"deletions":5,"changed_files":2}}