Skip to content

Commit

Permalink
EC2 resource from boto3 makes vpc connection redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
aske committed Oct 30, 2017
1 parent 8da8956 commit 79506da
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions nixops/backends/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ def get_type(cls):
def __init__(self, depl, name, id):
MachineState.__init__(self, depl, name, id)
self._conn = None
self._conn_vpc = None
self._conn_route53 = None
self._cached_instance = None

Expand Down Expand Up @@ -253,12 +252,6 @@ def connect(self):
return self._conn


def connect_vpc(self):
if self._conn_vpc:
return self._conn_vpc
self._conn_vpc = nixops.ec2_utils.connect_vpc(self.region, self.access_key_id)
return self._conn_vpc

def connect_route53(self):
if self._conn_route53:
return
Expand Down

0 comments on commit 79506da

Please sign in to comment.