Skip to content

Commit

Permalink
EC2: Add physical specs for elastic IP resources
Browse files Browse the repository at this point in the history
  • Loading branch information
PsyanticY committed Apr 10, 2019
1 parent 1147632 commit d50c7d1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nixops/resources/elastic_ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ def show_type(self):
def resource_id(self):
return self.public_ipv4

def get_physical_spec(self):
physical = {}
if self.public_ipv4:
physical['address'] = self.public_ipv4
return physical

def prefix_definition(self, attr):
return {('resources', 'elasticIPs'): attr}

def connect(self, region):
if self._client:
return
Expand Down

0 comments on commit d50c7d1

Please sign in to comment.