{"action":"created","comment":{"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/pulls/comments/46824058","id":46824058,"diff_hunk":"@@ -0,0 +1,323 @@\n+#########\n+# Copyright (c) 2015 GigaSpaces Technologies Ltd. All rights reserved\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#       http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+#  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+#  * See the License for the specific language governing permissions and\n+#  * limitations under the License.\n+\n+from boto import exception\n+from ec2 import utils as ec2_utils\n+from ec2 import constants\n+from vpc import connection\n+from cloudify.exceptions import NonRecoverableError, RecoverableError\n+from cloudify import ctx\n+\n+\n+class AwsBase(object):\n+\n+    def __init__(self,\n+                 client=None\n+                 ):\n+        self.client = client if client else connection.VPCConnectionClient().client()\n+\n+    def communicate(self, fn, args=None):","path":"core/base.py","position":31,"original_position":31,"commit_id":"a501a37e2371a77762e39ca67674dbd8f4fd2940","original_commit_id":"a501a37e2371a77762e39ca67674dbd8f4fd2940","user":{"login":"EarthmanT","id":9653571,"avatar_url":"https://avatars.githubusercontent.com/u/9653571?v=3","gravatar_id":"","url":"https://api.github.com/users/EarthmanT","html_url":"https://github.com/EarthmanT","followers_url":"https://api.github.com/users/EarthmanT/followers","following_url":"https://api.github.com/users/EarthmanT/following{/other_user}","gists_url":"https://api.github.com/users/EarthmanT/gists{/gist_id}","starred_url":"https://api.github.com/users/EarthmanT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EarthmanT/subscriptions","organizations_url":"https://api.github.com/users/EarthmanT/orgs","repos_url":"https://api.github.com/users/EarthmanT/repos","events_url":"https://api.github.com/users/EarthmanT/events{/privacy}","received_events_url":"https://api.github.com/users/EarthmanT/received_events","type":"User","site_admin":false},"body":"def communicate(raise_on_none=False):\r\n...\r\nif not output:\r\n   raise\r\n...","created_at":"2015-12-07T14:12:23Z","updated_at":"2015-12-07T14:12:23Z","html_url":"https://github.com/cloudify-cosmo/cloudify-aws-plugin/pull/85#discussion_r46824058","pull_request_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/pulls/85","_links":{"self":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/pulls/comments/46824058"},"html":{"href":"https://github.com/cloudify-cosmo/cloudify-aws-plugin/pull/85#discussion_r46824058"},"pull_request":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/pulls/85"}}},"pull_request":{"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/pulls/85","id":52545348,"html_url":"https://github.com/cloudify-cosmo/cloudify-aws-plugin/pull/85","diff_url":"https://github.com/cloudify-cosmo/cloudify-aws-plugin/pull/85.diff","patch_url":"https://github.com/cloudify-cosmo/cloudify-aws-plugin/pull/85.patch","issue_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/issues/85","number":85,"state":"open","locked":false,"title":"NEW FEATURE - VPC Support","user":{"login":"EarthmanT","id":9653571,"avatar_url":"https://avatars.githubusercontent.com/u/9653571?v=3","gravatar_id":"","url":"https://api.github.com/users/EarthmanT","html_url":"https://github.com/EarthmanT","followers_url":"https://api.github.com/users/EarthmanT/followers","following_url":"https://api.github.com/users/EarthmanT/following{/other_user}","gists_url":"https://api.github.com/users/EarthmanT/gists{/gist_id}","starred_url":"https://api.github.com/users/EarthmanT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EarthmanT/subscriptions","organizations_url":"https://api.github.com/users/EarthmanT/orgs","repos_url":"https://api.github.com/users/EarthmanT/repos","events_url":"https://api.github.com/users/EarthmanT/events{/privacy}","received_events_url":"https://api.github.com/users/EarthmanT/received_events","type":"User","site_admin":false},"body":"- Redesign Underlying Common Elements\r\n- Add plugin.yaml/types\r\n- Add create/delete vpc\r\n- Add create/delete snapshots\r\n- Add create/delete subnets\r\n- Add create/delete/attach/detach gateways\r\n- Add Unit Tests\r\n- Updated ElasticIP to Support VPC\r\n- Created Public version of private method for use by vpc package\r\n- Updated boto dependency version\r\n- Add routes\r\n- Add ACL\r\n- Slight Refactoring of Tests\r\n- Add a Demo Folder (Temporary)\r\n- Fixed Flake8\r\n- Add Unit tests to reach over 90 percent coverage\r\n- Added Route Table Associated with Subnet Rel\r\n- Removed ClassicLinkEnabled\r\n- Added 3.3 Manager Blueprint","created_at":"2015-12-03T15:04:00Z","updated_at":"2015-12-07T14:12:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ded15185b602904fe2f0c20fce40d7c6fd333a5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/pulls/85/commits","review_comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/pulls/85/comments","review_comment_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/issues/85/comments","statuses_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/statuses/a501a37e2371a77762e39ca67674dbd8f4fd2940","head":{"label":"cloudify-cosmo:CFY-4033-Add-VPC-Support","ref":"CFY-4033-Add-VPC-Support","sha":"a501a37e2371a77762e39ca67674dbd8f4fd2940","user":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"repo":{"id":28482346,"name":"cloudify-aws-plugin","full_name":"cloudify-cosmo/cloudify-aws-plugin","owner":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudify-cosmo/cloudify-aws-plugin","description":"A Cloudify Plugin that provisions resources in Amazon Web Services","fork":false,"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin","forks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/forks","keys_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/teams","hooks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/hooks","issue_events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/events","assignees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/tags","blobs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/languages","stargazers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/stargazers","contributors_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/contributors","subscribers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/subscribers","subscription_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/subscription","commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/merges","archive_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/downloads","issues_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/labels{/name}","releases_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/releases{/id}","created_at":"2014-12-25T13:32:30Z","updated_at":"2015-10-30T02:41:20Z","pushed_at":"2015-12-07T12:06:11Z","git_url":"git://github.com/cloudify-cosmo/cloudify-aws-plugin.git","ssh_url":"git@github.com:cloudify-cosmo/cloudify-aws-plugin.git","clone_url":"https://github.com/cloudify-cosmo/cloudify-aws-plugin.git","svn_url":"https://github.com/cloudify-cosmo/cloudify-aws-plugin","homepage":null,"size":748,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":6,"forks":8,"open_issues":6,"watchers":3,"default_branch":"master"}},"base":{"label":"cloudify-cosmo:master","ref":"master","sha":"1ccf148e84f130231fba500d6201a7d54bdfbc28","user":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"repo":{"id":28482346,"name":"cloudify-aws-plugin","full_name":"cloudify-cosmo/cloudify-aws-plugin","owner":{"login":"cloudify-cosmo","id":6260555,"avatar_url":"https://avatars.githubusercontent.com/u/6260555?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudify-cosmo","html_url":"https://github.com/cloudify-cosmo","followers_url":"https://api.github.com/users/cloudify-cosmo/followers","following_url":"https://api.github.com/users/cloudify-cosmo/following{/other_user}","gists_url":"https://api.github.com/users/cloudify-cosmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify-cosmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify-cosmo/subscriptions","organizations_url":"https://api.github.com/users/cloudify-cosmo/orgs","repos_url":"https://api.github.com/users/cloudify-cosmo/repos","events_url":"https://api.github.com/users/cloudify-cosmo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify-cosmo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudify-cosmo/cloudify-aws-plugin","description":"A Cloudify Plugin that provisions resources in Amazon Web Services","fork":false,"url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin","forks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/forks","keys_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/teams","hooks_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/hooks","issue_events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/events","assignees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/tags","blobs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/languages","stargazers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/stargazers","contributors_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/contributors","subscribers_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/subscribers","subscription_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/subscription","commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/merges","archive_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/downloads","issues_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/labels{/name}","releases_url":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/releases{/id}","created_at":"2014-12-25T13:32:30Z","updated_at":"2015-10-30T02:41:20Z","pushed_at":"2015-12-07T12:06:11Z","git_url":"git://github.com/cloudify-cosmo/cloudify-aws-plugin.git","ssh_url":"git@github.com:cloudify-cosmo/cloudify-aws-plugin.git","clone_url":"https://github.com/cloudify-cosmo/cloudify-aws-plugin.git","svn_url":"https://github.com/cloudify-cosmo/cloudify-aws-plugin","homepage":null,"size":748,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":6,"forks":8,"open_issues":6,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/pulls/85"},"html":{"href":"https://github.com/cloudify-cosmo/cloudify-aws-plugin/pull/85"},"issue":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/issues/85"},"comments":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/cloudify-cosmo/cloudify-aws-plugin/statuses/a501a37e2371a77762e39ca67674dbd8f4fd2940"}}}}