{"action":"created","comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments/68029862","id":68029862,"diff_hunk":"@@ -0,0 +1,356 @@\n+#!/usr/bin/python\n+# This file is part of Ansible\n+#\n+# Ansible is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation, either version 3 of the License, or\n+# (at your option) any later version.\n+#\n+# Ansible is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with Ansible.  If not, see <http://www.gnu.org/licenses/>.\n+\n+\n+DOCUMENTATION = '''\n+---\n+module: ec2_vpc_nat_gateway\n+short_description: Manage AWS VPC NAT Gateways\n+description:\n+  - Ensure the state of AWS VPC NAT Gateways based on their id, allocation and subnet ids.\n+version_added: \"2.2\"\n+options:\n+  state:\n+    description:\n+      - Ensure NAT Gateway is present or absent\n+    required: false\n+    default: \"present\"\n+    choices: [\"present\", \"absent\"]\n+  nat_gateway_id:\n+    description:\n+      - The id AWS dynamically allocates to the NAT Gateway on creation\n+    required: false\n+    default: None\n+  subnet_id:\n+    description:\n+      - The id of the subnet to create the NAT Gateway in\n+    required: false\n+    default: None\n+  allocation_id:\n+    description:\n+      - The id of the elastic IP allocation\n+    required: false\n+    default: None\n+  max_count:\n+    description:\n+      - The maximum number of NAT Gateways that should exist in the specified subnet after the task has completed\n+    required: false\n+    default: 1\n+  wait:\n+    description:\n+      - Wait for operation to complete before returning\n+    required: false\n+    default: true\n+  wait_timeout:\n+    description:\n+      - How many seconds to wait for an operation to complete before timing out\n+    required: false\n+    default: 300\n+\n+author:\n+  - \"Jon Hadfield (@jonhadfield)\"\n+  - \"Karen Cheng(@Etherdaemon)\"\n+extends_documentation_fragment:\n+  - aws\n+  - ec2\n+'''\n+\n+EXAMPLES = '''\n+# Note: These examples do not set authentication details, see the AWS Guide for details.\n+\n+# Ensure that a VPC NAT Gateway exists in a subnet by passing the subnet id and EIP allocation id\n+ec2_vpc_nat_gateway:\n+  state: present\n+  subnet_id: subnet-a67643d1\n+  allocation_id: eipalloc-a32baec6\n+\n+# Ensure no more than two VPC NAT Gateways exist in the specified subnet once the task has completed\n+ec2_vpc_nat_gateway:\n+  state: present\n+  subnet_id: subnet-a67643d1\n+  allocation_id: eipalloc-a32baec6\n+  max_count: 2\n+\n+# Ensure that a VPC NAT Gateway exists in a subnet by passing the subnet id and\n+# EIP allocation id but do not wait for operation to complete before continuing\n+ec2_vpc_nat_gateway:\n+  state: present\n+  subnet_id: subnet-a67643d1\n+  allocation_id: eipalloc-a32baec6\n+  wait: false\n+\n+# Ensure that a VPC NAT Gateway identified by id does not exist\n+ec2_vpc_nat_gateway:\n+  state: absent\n+  nat_gateway_id: nat-0d1e3a878585988f8\n+'''\n+\n+RETURN = '''\n+nat_gateway:\n+  description: details of the nat gateway created\n+  returned: when created\n+  type: dict\n+  sample:  {\n+    \"nat_gateway\": {\n+      \"create_time\": \"2016-05-02T21:21:50.683000+00:00\",\n+      \"nat_gateway_addresses\": [\n+        {\n+        \"allocation_id\": \"eipalloc-784f391d\"\n+        }\n+      ],\n+      \"nat_gateway_id\": \"nat-03afc583f2b2962b6\",\n+      \"state\": \"pending\",\n+      \"subnet_id\": \"subnet-16640561\",\n+      \"vpc_id\": \"vpc-6a31bc0f\"\n+    }\n+  }\n+nat_gateway_id:\n+    description: id of the VPC NAT Gateway\n+    returned: On create when NAT GW already exists and on completed deletion\n+    type: string\n+    sample: \"nat-0d1e3a878585988f8\"\n+'''\n+\n+import datetime\n+import time\n+\n+try:\n+    import boto3\n+    import botocore\n+\n+    HAS_BOTO_3 = True\n+except ImportError:\n+    HAS_BOTO_3 = False\n+from distutils.version import LooseVersion\n+\n+if LooseVersion(botocore.__version__) < LooseVersion(\"1.3.14\"):\n+    HAS_SUFFICIENT_BOTOCORE = False\n+else:\n+    HAS_SUFFICIENT_BOTOCORE = True\n+\n+\n+def get_nat_gateway_status_list(ec2_client=None, module=None):\n+    \"\"\" Check if one or more NAT gateways exist with the specified attributes and return a list of matching \"\"\"\n+    try:\n+        subnet_id = module.params.get('subnet_id')\n+        allocation_id = module.params.get('allocation_id')\n+        # We only pass nat_gateway_id alone if we are ensuring it is absent\n+        if module.params.get('nat_gateway_id'):\n+            result = ec2_client.describe_nat_gateways(NatGatewayIds=[module.params.get('nat_gateway_id')])\n+            return [{'state': result.get('NatGateways')[0].get('State'),\n+                     'created': result.get('NatGateways')[0].get('CreateTime')}]\n+        # Checking if VPC NAT Gateway matching attributes is present\n+        elif all((subnet_id, allocation_id)):\n+            result = ec2_client.describe_nat_gateways(Filter=[\n+                {\n+                    'Name': 'subnet-id',\n+                    'Values': [subnet_id]\n+                }\n+            ])\n+            if result.get('NatGateways'):\n+                gateway_list = list()\n+                for nat_gateway in result.get('NatGateways'):\n+                    for nat_gateway_address in nat_gateway.get('NatGatewayAddresses'):\n+                        if nat_gateway_address.get('AllocationId') == allocation_id:\n+                            gateway_list.append({'state': nat_gateway.get('State'),\n+                                                 'created': nat_gateway.get('CreateTime'),\n+                                                 'nat_gateway_id': nat_gateway.get('NatGatewayId')})\n+                return gateway_list\n+        return [{'state': 'absent'}]\n+    except botocore.exceptions.ClientError as ce:\n+        if ce.response['Error']['Code'] == \"NatGatewayNotFound\":\n+            return [{'state': 'absent'}]\n+        else:\n+            module.fail_json(msg=ce.message)\n+\n+\n+def delete_nat_gateway(ec2_client=None, module=None, nat_gateway=None):\n+    \"\"\" Delete an existing NAT gateway \"\"\"\n+    nat_gateway_address = nat_gateway.get('NatGatewayAddresses')[0]\n+    nat_gateway_id = nat_gateway['NatGatewayId']\n+    results = dict(changed=True, nat_gateway_id=nat_gateway_id,\n+                   public_ip=nat_gateway_address.get('PublicIp'),\n+                   private_ip=nat_gateway_address.get('PrivateIp'),\n+                   allocation_id=nat_gateway_address.get('AllocationId'))\n+    ec2_client.delete_nat_gateway(NatGatewayId=nat_gateway_id)\n+    wait = module.params.get('wait')\n+    if wait:\n+        wait_timeout = time.time() + module.params.get('wait_timeout')\n+        while wait_timeout > time.time():\n+            nat_gateway_status_list = get_nat_gateway_status_list(ec2_client=ec2_client, module=module)\n+            if nat_gateway_status_list[0].get('state') in ('deleted', 'absent'):\n+                module.exit_json(**results)\n+            else:\n+                time.sleep(5)\n+        module.fail_json(msg=\"Waited too long for VPC NAT Gateway to be deleted.\")\n+    else:\n+        module.exit_json(**results)\n+\n+\n+def create_nat_gateway(ec2_client=None, module=None):\n+    \"\"\" Create the NAT gateway \"\"\"\n+    try:\n+        result = ec2_client.create_nat_gateway(SubnetId=module.params.get('subnet_id'),\n+                                               AllocationId=module.params.get('allocation_id'))\n+        wait = module.params.get('wait')\n+        start_time = datetime.datetime.utcnow()\n+        results = dict(changed=True)\n+        if wait:\n+            wait_timeout = time.time() + module.params.get('wait_timeout')\n+            while wait_timeout > time.time():\n+                if 'nat_gateway' in results:\n+                    break\n+                for present_status in get_nat_gateway_status_list(ec2_client=ec2_client, module=module):\n+                    create_time = present_status.get('created')\n+                    if present_status.get('state') == 'failed' and create_time.replace(tzinfo=None) >= start_time:\n+                        module.fail_json(msg=\"Failed to create VPC NAT Gateway\")\n+                    elif present_status.get('state') == 'available':\n+                        results['nat_gateway'] = camel_dict_to_snake_dict(result['NatGateway'])\n+                        break\n+                    else:\n+                        time.sleep(5)\n+            else:\n+                module.fail_json(msg=\"Waited too long for VPC NAT Gateway to be created.\")\n+        module.exit_json(**results)\n+    except botocore.exceptions.ClientError as ce:\n+        module.fail_json(msg=ce.message)\n+\n+\n+def ensure_nat_gateway_absent(ec2_client=None, module=None):\n+    \"\"\" Ensure the specified NAT gateway does not exist and call delete if it does \"\"\"\n+    try:\n+        results = dict(changed=False)\n+        nat_gateways_result = ec2_client.describe_nat_gateways(NatGatewayIds=[module.params.get('nat_gateway_id')])\n+        if nat_gateways_result:\n+            nat_gateway = nat_gateways_result.get('NatGateways')[0]\n+            if nat_gateway.get('State') in ('pending',\n+                                            'available'):\n+                if module.check_mode:\n+                    results['changed'] = True\n+                    module.exit_json(**results)\n+                else:\n+                    delete_nat_gateway(ec2_client=ec2_client,\n+                                       module=module,\n+                                       nat_gateway=nat_gateway)\n+        module.exit_json(**results)\n+    except botocore.exceptions.ClientError as ce:\n+        if ce.response['Error']['Code'] == \"NatGatewayMalformed\":\n+            module.fail_json(msg=\"Invalid NAT Gateway ID\")\n+        else:\n+            module.fail_json(msg=ce.message)\n+\n+\n+def ensure_nat_gateway_present(ec2_client=None, module=None):\n+    \"\"\" Ensure NAT gateway with specified parameters exists and call create if it does not \"\"\"\n+    # Check allocation-id refers to existing EIP allocation\n+    allocation_id = module.params.get('allocation_id')\n+    try:\n+        ec2_client.describe_addresses(AllocationIds=[module.params.get('allocation_id')])\n+    except botocore.exceptions.ClientError:\n+        module.fail_json(msg=\"allocation: %s does not exist.\" % allocation_id)\n+    # Check subnet exists\n+    subnet_id = module.params.get('subnet_id')\n+    try:\n+        ec2_client.describe_subnets(SubnetIds=[subnet_id])\n+    except botocore.exceptions.ClientError:\n+        module.fail_json(msg=\"subnet: %s does not exist.\" % subnet_id)","path":"cloud/amazon/ec2_vpc_nat_gateway.py","position":269,"original_position":269,"commit_id":"5e4660d248bb1caf914dffd6c6902d294bfc98a0","original_commit_id":"5e4660d248bb1caf914dffd6c6902d294bfc98a0","user":{"login":"wimnat","id":7425606,"avatar_url":"https://avatars.githubusercontent.com/u/7425606?v=3","gravatar_id":"","url":"https://api.github.com/users/wimnat","html_url":"https://github.com/wimnat","followers_url":"https://api.github.com/users/wimnat/followers","following_url":"https://api.github.com/users/wimnat/following{/other_user}","gists_url":"https://api.github.com/users/wimnat/gists{/gist_id}","starred_url":"https://api.github.com/users/wimnat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wimnat/subscriptions","organizations_url":"https://api.github.com/users/wimnat/orgs","repos_url":"https://api.github.com/users/wimnat/repos","events_url":"https://api.github.com/users/wimnat/events{/privacy}","received_events_url":"https://api.github.com/users/wimnat/received_events","type":"User","site_admin":false},"body":"Same as other comment above","created_at":"2016-06-22T10:28:11Z","updated_at":"2016-06-22T10:28:11Z","html_url":"https://github.com/ansible/ansible-modules-extras/pull/1687#discussion_r68029862","pull_request_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1687","_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/comments/68029862"},"html":{"href":"https://github.com/ansible/ansible-modules-extras/pull/1687#discussion_r68029862"},"pull_request":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1687"}}},"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1687","id":59781777,"html_url":"https://github.com/ansible/ansible-modules-extras/pull/1687","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/1687.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/1687.patch","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1687","number":1687,"state":"open","locked":false,"title":"add vpc nat gateway module.","user":{"login":"jonhadfield","id":843944,"avatar_url":"https://avatars.githubusercontent.com/u/843944?v=3","gravatar_id":"","url":"https://api.github.com/users/jonhadfield","html_url":"https://github.com/jonhadfield","followers_url":"https://api.github.com/users/jonhadfield/followers","following_url":"https://api.github.com/users/jonhadfield/following{/other_user}","gists_url":"https://api.github.com/users/jonhadfield/gists{/gist_id}","starred_url":"https://api.github.com/users/jonhadfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonhadfield/subscriptions","organizations_url":"https://api.github.com/users/jonhadfield/orgs","repos_url":"https://api.github.com/users/jonhadfield/repos","events_url":"https://api.github.com/users/jonhadfield/events{/privacy}","received_events_url":"https://api.github.com/users/jonhadfield/received_events","type":"User","site_admin":false},"body":"This adds the functionality to manage a VPC Managed NAT Gateway.\r\n\r\nPrevious PR https://github.com/ansible/ansible-modules-extras/pull/1438 closed as github won't allow me to re-open after a forced push.","created_at":"2016-02-18T10:56:15Z","updated_at":"2016-06-22T10:28:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c031347682f5dc98343450c330c99857ff78fdb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1687/commits","review_comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1687/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/1687/comments","statuses_url":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/5e4660d248bb1caf914dffd6c6902d294bfc98a0","head":{"label":"jonhadfield:add_vpc_nat_gateway_module","ref":"add_vpc_nat_gateway_module","sha":"5e4660d248bb1caf914dffd6c6902d294bfc98a0","user":{"login":"jonhadfield","id":843944,"avatar_url":"https://avatars.githubusercontent.com/u/843944?v=3","gravatar_id":"","url":"https://api.github.com/users/jonhadfield","html_url":"https://github.com/jonhadfield","followers_url":"https://api.github.com/users/jonhadfield/followers","following_url":"https://api.github.com/users/jonhadfield/following{/other_user}","gists_url":"https://api.github.com/users/jonhadfield/gists{/gist_id}","starred_url":"https://api.github.com/users/jonhadfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonhadfield/subscriptions","organizations_url":"https://api.github.com/users/jonhadfield/orgs","repos_url":"https://api.github.com/users/jonhadfield/repos","events_url":"https://api.github.com/users/jonhadfield/events{/privacy}","received_events_url":"https://api.github.com/users/jonhadfield/received_events","type":"User","site_admin":false},"repo":{"id":48748364,"name":"ansible-modules-extras","full_name":"jonhadfield/ansible-modules-extras","owner":{"login":"jonhadfield","id":843944,"avatar_url":"https://avatars.githubusercontent.com/u/843944?v=3","gravatar_id":"","url":"https://api.github.com/users/jonhadfield","html_url":"https://github.com/jonhadfield","followers_url":"https://api.github.com/users/jonhadfield/followers","following_url":"https://api.github.com/users/jonhadfield/following{/other_user}","gists_url":"https://api.github.com/users/jonhadfield/gists{/gist_id}","starred_url":"https://api.github.com/users/jonhadfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonhadfield/subscriptions","organizations_url":"https://api.github.com/users/jonhadfield/orgs","repos_url":"https://api.github.com/users/jonhadfield/repos","events_url":"https://api.github.com/users/jonhadfield/events{/privacy}","received_events_url":"https://api.github.com/users/jonhadfield/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonhadfield/ansible-modules-extras","description":"Ansible extra modules - these modules ship with ansible","fork":true,"url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras","forks_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/forks","keys_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/teams","hooks_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/hooks","issue_events_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/issues/events{/number}","events_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/events","assignees_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/assignees{/user}","branches_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/branches{/branch}","tags_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/tags","blobs_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/statuses/{sha}","languages_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/languages","stargazers_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/stargazers","contributors_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/contributors","subscribers_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/subscribers","subscription_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/subscription","commits_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/contents/{+path}","compare_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/merges","archive_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/downloads","issues_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/issues{/number}","pulls_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/pulls{/number}","milestones_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/milestones{/number}","notifications_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/labels{/name}","releases_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/releases{/id}","deployments_url":"https://api.github.com/repos/jonhadfield/ansible-modules-extras/deployments","created_at":"2015-12-29T13:18:33Z","updated_at":"2016-02-18T10:44:25Z","pushed_at":"2016-06-12T18:15:17Z","git_url":"git://github.com/jonhadfield/ansible-modules-extras.git","ssh_url":"git@github.com:jonhadfield/ansible-modules-extras.git","clone_url":"https://github.com/jonhadfield/ansible-modules-extras.git","svn_url":"https://github.com/jonhadfield/ansible-modules-extras","homepage":"","size":6378,"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":"7b7af3bcf9082120fa6aed3c109364920800d84d","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-06-21T14:50:19Z","pushed_at":"2016-06-22T09:20:01Z","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":44727,"stargazers_count":615,"watchers_count":615,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1288,"mirror_url":null,"open_issues_count":621,"forks":1288,"open_issues":621,"watchers":615,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1687"},"html":{"href":"https://github.com/ansible/ansible-modules-extras/pull/1687"},"issue":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1687"},"comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1687/comments"},"review_comments":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/1687/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/1687/commits"},"statuses":{"href":"https://api.github.com/repos/ansible/ansible-modules-extras/statuses/5e4660d248bb1caf914dffd6c6902d294bfc98a0"}}}}
{"actor":{"display_login":"wimnat"}}