fix eip physical_resource_id not returning an public_ip if it is in EC2 classic.
This commit is contained in:
parent
54794651d3
commit
d4cbc71b0a
1 changed files with 1 additions and 1 deletions
|
|
@ -1964,7 +1964,7 @@ class ElasticAddress(object):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def physical_resource_id(self):
|
def physical_resource_id(self):
|
||||||
return self.allocation_id
|
return self.allocation_id if self.allocation_id else self.public_ip
|
||||||
|
|
||||||
def get_cfn_attribute(self, attribute_name):
|
def get_cfn_attribute(self, attribute_name):
|
||||||
from moto.cloudformation.exceptions import UnformattedGetAttTemplateException
|
from moto.cloudformation.exceptions import UnformattedGetAttTemplateException
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue