Fix IP setting.

This commit is contained in:
Steve Pulec 2016-10-12 22:14:45 -04:00
parent 27f1bece9b
commit 4a92f9fdb0

View File

@ -2667,6 +2667,7 @@ class ElasticAddressBackend(object):
eip.eni.public_ip = eip.public_ip
if eip.domain == "vpc":
eip.association_id = random_eip_association_id()
if instance:
instance.set_ip(eip.public_ip)
return eip