Fix requires_floating_ip
This isn't a required piece of the config, so it might be unset. Use get instead of []. Change-Id: I1bbbcb4ac63a4f6d4399c0fa8881c21264a03e4b
This commit is contained in:
parent
424d112cd7
commit
eafc8bed56
@ -505,7 +505,7 @@ class CloudConfig(object):
|
|||||||
"""
|
"""
|
||||||
if self.config['floating_ip_source'] == "None":
|
if self.config['floating_ip_source'] == "None":
|
||||||
return False
|
return False
|
||||||
return self.config['requires_floating_ip']
|
return self.config.get('requires_floating_ip')
|
||||||
|
|
||||||
def get_external_networks(self):
|
def get_external_networks(self):
|
||||||
"""Get list of network names for external networks."""
|
"""Get list of network names for external networks."""
|
||||||
|
Loading…
Reference in New Issue
Block a user