{"action":"closed","number":3649,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/3649","id":96507541,"html_url":"https://github.com/ansible/ansible-modules-extras/pull/3649","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/3649.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/3649.patch","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3649","number":3649,"state":"closed","locked":false,"title":"Conditional main - network","user":{"login":"Fale","id":77888,"avatar_url":"https://avatars.githubusercontent.com/u/77888?v=3","gravatar_id":"","url":"https://api.github.com/users/Fale","html_url":"https://github.com/Fale","followers_url":"https://api.github.com/users/Fale/followers","following_url":"https://api.github.com/users/Fale/following{/other_user}","gists_url":"https://api.github.com/users/Fale/gists{/gist_id}","starred_url":"https://api.github.com/users/Fale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fale/subscriptions","organizations_url":"https://api.github.com/users/Fale/orgs","repos_url":"https://api.github.com/users/Fale/repos","events_url":"https://api.github.com/users/Fale/events{/privacy}","received_events_url":"https://api.github.com/users/Fale/received_events","type":"User","site_admin":false},"body":"##### ISSUE TYPE\r\n - Bugfix Pull Request\r\n\r\n##### COMPONENT NAME\r\nnetwork/*\r\n\r\n##### ANSIBLE VERSION\r\n```\r\n2.2\r\n```\r\n\r\n##### SUMMARY\r\nUse conditional main as for the 16th point of the module checklist at http://docs.ansible.com/ansible/dev_guide/developing_modules.html#module-checklist that reads:\r\n\r\nCall your main() from a conditional so that it would be possible to import them into unittests in the future example:\r\n\r\n    if __name__ == '__main__':\r\n        main()\r\n\r\n\r\n@gundalow","created_at":"2016-12-05T10:57:27Z","updated_at":"2016-12-05T16:22:51Z","closed_at":"2016-12-05T16:22:51Z","merged_at":"2016-12-05T16:22:51Z","merge_commit_sha":"5cdc64435d98214615d21815efe0a6dc39c165a9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/3649/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/3649/comments","review_comment_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3649/comments","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/25bce322f70671b452107d6807fc769ab1685598","head":{"label":"Fale:fix_mains_network","ref":"fix_mains_network","sha":"25bce322f70671b452107d6807fc769ab1685598","user":{"login":"Fale","id":77888,"avatar_url":"https://avatars.githubusercontent.com/u/77888?v=3","gravatar_id":"","url":"https://api.github.com/users/Fale","html_url":"https://github.com/Fale","followers_url":"https://api.github.com/users/Fale/followers","following_url":"https://api.github.com/users/Fale/following{/other_user}","gists_url":"https://api.github.com/users/Fale/gists{/gist_id}","starred_url":"https://api.github.com/users/Fale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fale/subscriptions","organizations_url":"https://api.github.com/users/Fale/orgs","repos_url":"https://api.github.com/users/Fale/repos","events_url":"https://api.github.com/users/Fale/events{/privacy}","received_events_url":"https://api.github.com/users/Fale/received_events","type":"User","site_admin":false},"repo":{"id":66782318,"name":"ansible-modules-extras","full_name":"Fale/ansible-modules-extras","owner":{"login":"Fale","id":77888,"avatar_url":"https://avatars.githubusercontent.com/u/77888?v=3","gravatar_id":"","url":"https://api.github.com/users/Fale","html_url":"https://github.com/Fale","followers_url":"https://api.github.com/users/Fale/followers","following_url":"https://api.github.com/users/Fale/following{/other_user}","gists_url":"https://api.github.com/users/Fale/gists{/gist_id}","starred_url":"https://api.github.com/users/Fale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fale/subscriptions","organizations_url":"https://api.github.com/users/Fale/orgs","repos_url":"https://api.github.com/users/Fale/repos","events_url":"https://api.github.com/users/Fale/events{/privacy}","received_events_url":"https://api.github.com/users/Fale/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Fale/ansible-modules-extras","description":"Ansible extra modules - these modules ship with ansible","fork":true,"url":"https://api.github.com/repos/Fale/ansible-modules-extras","forks_url":"https://api.github.com/repos/Fale/ansible-modules-extras/forks","keys_url":"https://api.github.com/repos/Fale/ansible-modules-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fale/ansible-modules-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fale/ansible-modules-extras/teams","hooks_url":"https://api.github.com/repos/Fale/ansible-modules-extras/hooks","issue_events_url":"https://api.github.com/repos/Fale/ansible-modules-extras/issues/events{/number}","events_url":"https://api.github.com/repos/Fale/ansible-modules-extras/events","assignees_url":"https://api.github.com/repos/Fale/ansible-modules-extras/assignees{/user}","branches_url":"https://api.github.com/repos/Fale/ansible-modules-extras/branches{/branch}","tags_url":"https://api.github.com/repos/Fale/ansible-modules-extras/tags","blobs_url":"https://api.github.com/repos/Fale/ansible-modules-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fale/ansible-modules-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fale/ansible-modules-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fale/ansible-modules-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fale/ansible-modules-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/Fale/ansible-modules-extras/languages","stargazers_url":"https://api.github.com/repos/Fale/ansible-modules-extras/stargazers","contributors_url":"https://api.github.com/repos/Fale/ansible-modules-extras/contributors","subscribers_url":"https://api.github.com/repos/Fale/ansible-modules-extras/subscribers","subscription_url":"https://api.github.com/repos/Fale/ansible-modules-extras/subscription","commits_url":"https://api.github.com/repos/Fale/ansible-modules-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fale/ansible-modules-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fale/ansible-modules-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fale/ansible-modules-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fale/ansible-modules-extras/contents/{+path}","compare_url":"https://api.github.com/repos/Fale/ansible-modules-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fale/ansible-modules-extras/merges","archive_url":"https://api.github.com/repos/Fale/ansible-modules-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fale/ansible-modules-extras/downloads","issues_url":"https://api.github.com/repos/Fale/ansible-modules-extras/issues{/number}","pulls_url":"https://api.github.com/repos/Fale/ansible-modules-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/Fale/ansible-modules-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/Fale/ansible-modules-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fale/ansible-modules-extras/labels{/name}","releases_url":"https://api.github.com/repos/Fale/ansible-modules-extras/releases{/id}","deployments_url":"https://api.github.com/repos/Fale/ansible-modules-extras/deployments","created_at":"2016-08-28T17:50:31Z","updated_at":"2016-08-28T17:50:37Z","pushed_at":"2016-12-05T14:12:02Z","git_url":"git://github.com/Fale/ansible-modules-extras.git","ssh_url":"git@github.com:Fale/ansible-modules-extras.git","clone_url":"https://github.com/Fale/ansible-modules-extras.git","svn_url":"https://github.com/Fale/ansible-modules-extras","homepage":"","size":9563,"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":"83b86ec970ed9541f6c6a31649aeeacb3d835e58","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":24474138,"name":"ansible-modules-extras","full_name":"ansible/ansible-modules-extras","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-modules-extras","description":"Ansible extra modules - these modules ship with ansible","fork":false,"url":"https://api.github.com/repos/ansible/ansible-modules-extras","forks_url":"https://api.github.com/repos/ansible/ansible-modules-extras/forks","keys_url":"https://api.github.com/repos/ansible/ansible-modules-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ansible/ansible-modules-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ansible/ansible-modules-extras/teams","hooks_url":"https://api.github.com/repos/ansible/ansible-modules-extras/hooks","issue_events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/events{/number}","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/events","assignees_url":"https://api.github.com/repos/ansible/ansible-modules-extras/assignees{/user}","branches_url":"https://api.github.com/repos/ansible/ansible-modules-extras/branches{/branch}","tags_url":"https://api.github.com/repos/ansible/ansible-modules-extras/tags","blobs_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/ansible/ansible-modules-extras/languages","stargazers_url":"https://api.github.com/repos/ansible/ansible-modules-extras/stargazers","contributors_url":"https://api.github.com/repos/ansible/ansible-modules-extras/contributors","subscribers_url":"https://api.github.com/repos/ansible/ansible-modules-extras/subscribers","subscription_url":"https://api.github.com/repos/ansible/ansible-modules-extras/subscription","commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/ansible/ansible-modules-extras/contents/{+path}","compare_url":"https://api.github.com/repos/ansible/ansible-modules-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ansible/ansible-modules-extras/merges","archive_url":"https://api.github.com/repos/ansible/ansible-modules-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ansible/ansible-modules-extras/downloads","issues_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues{/number}","pulls_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/ansible/ansible-modules-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/ansible/ansible-modules-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels{/name}","releases_url":"https://api.github.com/repos/ansible/ansible-modules-extras/releases{/id}","deployments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/deployments","created_at":"2014-09-25T20:28:42Z","updated_at":"2016-12-05T06:33:44Z","pushed_at":"2016-12-05T16:22:51Z","git_url":"git://github.com/ansible/ansible-modules-extras.git","ssh_url":"git@github.com:ansible/ansible-modules-extras.git","clone_url":"https://github.com/ansible/ansible-modules-extras.git","svn_url":"https://github.com/ansible/ansible-modules-extras","homepage":"","size":56118,"stargazers_count":786,"watchers_count":786,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1679,"mirror_url":null,"open_issues_count":761,"forks":1679,"open_issues":761,"watchers":786,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/3649"},"html":{"href":"https://github.com/ansible/ansible-modules-extras/pull/3649"},"issue":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3649"},"comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3649/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/3649/comments"},"review_comment":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/3649/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/25bce322f70671b452107d6807fc769ab1685598"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ryansb","id":636610,"avatar_url":"https://avatars.githubusercontent.com/u/636610?v=3","gravatar_id":"","url":"https://api.github.com/users/ryansb","html_url":"https://github.com/ryansb","followers_url":"https://api.github.com/users/ryansb/followers","following_url":"https://api.github.com/users/ryansb/following{/other_user}","gists_url":"https://api.github.com/users/ryansb/gists{/gist_id}","starred_url":"https://api.github.com/users/ryansb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryansb/subscriptions","organizations_url":"https://api.github.com/users/ryansb/orgs","repos_url":"https://api.github.com/users/ryansb/repos","events_url":"https://api.github.com/users/ryansb/events{/privacy}","received_events_url":"https://api.github.com/users/ryansb/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":39,"deletions":16,"changed_files":15}}
{"actor":{"display_login":"ryansb"}}