{"action":"closed","number":9598,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/9598","id":24904275,"html_url":"https://github.com/ansible/ansible/pull/9598","diff_url":"https://github.com/ansible/ansible/pull/9598.diff","patch_url":"https://github.com/ansible/ansible/pull/9598.patch","issue_url":"https://api.github.com/repos/ansible/ansible/issues/9598","number":9598,"state":"closed","locked":false,"title":"Make --version report the active config file","user":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"body":"This is useful for troubleshooting.\r\n\r\nE.g.:\r\n\r\n```\r\n$ ansible-playbook --version\r\nansible-playbook 1.8 (make_hacking_env-setup_init_submodules 4530974b3b) last updated 2014/11/23 09:51:01 (GMT -700)\r\n  lib/ansible/modules/core: (detached HEAD 19b328c4df) last updated 2014/11/23 09:44:44 (GMT -700)\r\n  lib/ansible/modules/extras: (detached HEAD e64751b0eb) last updated 2014/11/23 09:48:22 (GMT -700)\r\n  v2/ansible/modules/core: (detached HEAD cb69744bce) last updated 2014/11/23 09:48:34 (GMT -700)\r\n  v2/ansible/modules/extras: (detached HEAD 8a4f07eecd) last updated 2014/11/23 09:48:45 (GMT -700)\r\n  configured module search path = None\r\n  config file = /etc/ansible/ansible.cfg\r\n```\r\n\r\n(Note the last line above).\r\n\r\nNote also that [`lib/ansible/config.py`](https://github.com/msabramo/ansible/blob/make_version_report_active_config_file/lib/ansible/config.py) is pretty much just extracted from `lib/ansible/constants.py`, but while I was at it, I made sure that the new file is flake8-compliant:\r\n\r\n```\r\n$ pep8 lib/ansible/config.py && echo $?\r\n0\r\n\r\n$ flake8 lib/ansible/config.py && echo $?\r\n0\r\n```\r\n\r\nCc: @sontek, @sudarkoff","created_at":"2014-11-23T18:05:19Z","updated_at":"2015-02-27T01:23:38Z","closed_at":"2015-02-27T01:23:38Z","merged_at":null,"merge_commit_sha":"86bcd476a667977c5b2a44026db80256fb2e8791","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible/pulls/9598/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible/pulls/9598/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/9598/comments","statuses_url":"https://api.github.com/repos/ansible/ansible/statuses/f1d3b502a6fb25d1d69668bfab4ec08d0924cfcc","head":{"label":"msabramo:make_version_report_active_config_file","ref":"make_version_report_active_config_file","sha":"f1d3b502a6fb25d1d69668bfab4ec08d0924cfcc","user":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"repo":{"id":4928036,"name":"ansible","full_name":"msabramo/ansible","owner":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/msabramo/ansible","description":"Model-driven configuration management, multi-node deployment, and remote task execution system","fork":true,"url":"https://api.github.com/repos/msabramo/ansible","forks_url":"https://api.github.com/repos/msabramo/ansible/forks","keys_url":"https://api.github.com/repos/msabramo/ansible/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msabramo/ansible/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msabramo/ansible/teams","hooks_url":"https://api.github.com/repos/msabramo/ansible/hooks","issue_events_url":"https://api.github.com/repos/msabramo/ansible/issues/events{/number}","events_url":"https://api.github.com/repos/msabramo/ansible/events","assignees_url":"https://api.github.com/repos/msabramo/ansible/assignees{/user}","branches_url":"https://api.github.com/repos/msabramo/ansible/branches{/branch}","tags_url":"https://api.github.com/repos/msabramo/ansible/tags","blobs_url":"https://api.github.com/repos/msabramo/ansible/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msabramo/ansible/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msabramo/ansible/git/refs{/sha}","trees_url":"https://api.github.com/repos/msabramo/ansible/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msabramo/ansible/statuses/{sha}","languages_url":"https://api.github.com/repos/msabramo/ansible/languages","stargazers_url":"https://api.github.com/repos/msabramo/ansible/stargazers","contributors_url":"https://api.github.com/repos/msabramo/ansible/contributors","subscribers_url":"https://api.github.com/repos/msabramo/ansible/subscribers","subscription_url":"https://api.github.com/repos/msabramo/ansible/subscription","commits_url":"https://api.github.com/repos/msabramo/ansible/commits{/sha}","git_commits_url":"https://api.github.com/repos/msabramo/ansible/git/commits{/sha}","comments_url":"https://api.github.com/repos/msabramo/ansible/comments{/number}","issue_comment_url":"https://api.github.com/repos/msabramo/ansible/issues/comments{/number}","contents_url":"https://api.github.com/repos/msabramo/ansible/contents/{+path}","compare_url":"https://api.github.com/repos/msabramo/ansible/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msabramo/ansible/merges","archive_url":"https://api.github.com/repos/msabramo/ansible/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msabramo/ansible/downloads","issues_url":"https://api.github.com/repos/msabramo/ansible/issues{/number}","pulls_url":"https://api.github.com/repos/msabramo/ansible/pulls{/number}","milestones_url":"https://api.github.com/repos/msabramo/ansible/milestones{/number}","notifications_url":"https://api.github.com/repos/msabramo/ansible/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msabramo/ansible/labels{/name}","releases_url":"https://api.github.com/repos/msabramo/ansible/releases{/id}","created_at":"2012-07-06T16:50:55Z","updated_at":"2014-06-28T15:11:22Z","pushed_at":"2015-02-27T01:21:15Z","git_url":"git://github.com/msabramo/ansible.git","ssh_url":"git@github.com:msabramo/ansible.git","clone_url":"https://github.com/msabramo/ansible.git","svn_url":"https://github.com/msabramo/ansible","homepage":"http://ansible.github.com","size":22996,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"devel"}},"base":{"label":"ansible:devel","ref":"devel","sha":"116109468c6a8a4b2edada53964ac632123e7570","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-02-27T01:13:32Z","pushed_at":"2015-02-27T00:02:07Z","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":176207,"stargazers_count":9716,"watchers_count":9716,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2940,"mirror_url":null,"open_issues_count":686,"forks":2940,"open_issues":686,"watchers":9716,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible/pulls/9598"},"html":{"href":"https://github.com/ansible/ansible/pull/9598"},"issue":{"href":"https://api.github.com/repos/ansible/ansible/issues/9598"},"comments":{"href":"https://api.github.com/repos/ansible/ansible/issues/9598/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible/pulls/9598/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible/pulls/9598/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible/statuses/f1d3b502a6fb25d1d69668bfab4ec08d0924cfcc"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":4,"review_comments":0,"commits":1,"additions":78,"deletions":58,"changed_files":3}}