default eip domain to 'standard' for cloudformation creations
This commit is contained in:
parent
9301b46346
commit
d55a0b6ef0
@ -1949,11 +1949,12 @@ class ElasticAddress(object):
|
|||||||
properties = cloudformation_json.get('Properties')
|
properties = cloudformation_json.get('Properties')
|
||||||
instance_id = None
|
instance_id = None
|
||||||
if properties:
|
if properties:
|
||||||
|
domain=properties.get('Domain')
|
||||||
eip = ec2_backend.allocate_address(
|
eip = ec2_backend.allocate_address(
|
||||||
domain=properties.get('Domain'))
|
domain=domain if domain else 'standard')
|
||||||
instance_id = properties.get('InstanceId')
|
instance_id = properties.get('InstanceId')
|
||||||
else:
|
else:
|
||||||
eip = ec2_backend.allocate_address()
|
eip = ec2_backend.allocate_address(domain='standard')
|
||||||
|
|
||||||
if instance_id:
|
if instance_id:
|
||||||
instance = ec2_backend.get_instance_by_id(instance_id)
|
instance = ec2_backend.get_instance_by_id(instance_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user