{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1776","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1776/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1776/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1776/events","html_url":"https://github.com/ansible/ansible-modules-extras/pull/1776","id":138030858,"number":1776,"title":"Fix instantiation of openstack_cloud object in os_project","user":{"login":"rcarrillocruz","id":1419467,"avatar_url":"https://avatars.githubusercontent.com/u/1419467?v=3","gravatar_id":"","url":"https://api.github.com/users/rcarrillocruz","html_url":"https://github.com/rcarrillocruz","followers_url":"https://api.github.com/users/rcarrillocruz/followers","following_url":"https://api.github.com/users/rcarrillocruz/following{/other_user}","gists_url":"https://api.github.com/users/rcarrillocruz/gists{/gist_id}","starred_url":"https://api.github.com/users/rcarrillocruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcarrillocruz/subscriptions","organizations_url":"https://api.github.com/users/rcarrillocruz/orgs","repos_url":"https://api.github.com/users/rcarrillocruz/repos","events_url":"https://api.github.com/users/rcarrillocruz/events{/privacy}","received_events_url":"https://api.github.com/users/rcarrillocruz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-02T23:57:38Z","updated_at":"2016-03-03T00:46:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1776","html_url":"https://github.com/ansible/ansible-modules-extras/pull/1776","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/1776.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/1776.patch"},"body":"##### Issue Type:\r\n\r\n - Bugfix Pull Request\r\n\r\n##### Plugin Name:\r\n\r\nos_project\r\n\r\n##### Ansible Version:\r\n\r\nansible 2.1.0 (devel 71402abf21) last updated 2016/03/01 20:37:11 (GMT +000)\r\n  lib/ansible/modules/core: (detached HEAD 0bbb7ba38d) last updated 2016/03/01 20:37:15 (GMT +000)\r\n  lib/ansible/modules/extras: (detached HEAD 39e4040685) last updated 2016/03/01 20:37:18 (GMT +000)\r\n  config file = \r\n  configured module search path = Default w/o overrides\r\n\r\n\r\n##### Summary:\r\n\r\nThe os_project module instantiates the openstack cloud object\r\nby passing the module params kwargs.\r\nAs the params contain a key named 'domain_id', this is used\r\nfor domain in the OpenStack connection, instead of the domain value\r\nthe user specifies on the OSCC clouds.yaml or openrc envvars.\r\nThis fix corrects this by passing only module params 'cloud'."},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/191512736","html_url":"https://github.com/ansible/ansible-modules-extras/pull/1776#issuecomment-191512736","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1776","id":191512736,"user":{"login":"Shrews","id":925883,"avatar_url":"https://avatars.githubusercontent.com/u/925883?v=3","gravatar_id":"","url":"https://api.github.com/users/Shrews","html_url":"https://github.com/Shrews","followers_url":"https://api.github.com/users/Shrews/followers","following_url":"https://api.github.com/users/Shrews/following{/other_user}","gists_url":"https://api.github.com/users/Shrews/gists{/gist_id}","starred_url":"https://api.github.com/users/Shrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shrews/subscriptions","organizations_url":"https://api.github.com/users/Shrews/orgs","repos_url":"https://api.github.com/users/Shrews/repos","events_url":"https://api.github.com/users/Shrews/events{/privacy}","received_events_url":"https://api.github.com/users/Shrews/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T00:46:20Z","updated_at":"2016-03-03T00:46:20Z","body":"Just do:\r\n\r\ndomain = module.params.pop('domain_id')"}}