From eafc8bed564d41f2a0c6a050e7a301241309fa59 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sat, 16 Sep 2017 13:13:25 -0500 Subject: [PATCH] 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 --- os_client_config/cloud_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."""