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:
Monty Taylor 2017-09-16 13:13:25 -05:00
parent 424d112cd7
commit eafc8bed56
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ class CloudConfig(object):
"""
if self.config['floating_ip_source'] == "None":
return False
return self.config['requires_floating_ip']
return self.config.get('requires_floating_ip')
def get_external_networks(self):
"""Get list of network names for external networks."""