diff options
author | Monty Taylor <mordred@inaugust.com> | 2017-09-16 13:13:25 -0500 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2017-09-16 13:13:25 -0500 |
commit | eafc8bed564d41f2a0c6a050e7a301241309fa59 (patch) | |
tree | ac7cbef67864615e61760c0280fcf4200b733fc2 /os_client_config | |
parent | 424d112cd7330e1b641e67d440e11ece55961d7d (diff) | |
download | os-client-config-eafc8bed564d41f2a0c6a050e7a301241309fa59.tar.gz |
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
Diffstat (limited to 'os_client_config')
-rw-r--r-- | os_client_config/cloud_config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os_client_config/cloud_config.py b/os_client_config/cloud_config.py index 9c6b5a5..d8b1e26 100644 --- a/os_client_config/cloud_config.py +++ b/os_client_config/cloud_config.py @@ -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.""" |