From 3891816acb6dd287f89498dd0fcb714b722f9252 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 16 Jul 2015 09:09:35 -0400 Subject: Remove region list from single cloud regions is a list of regions that can be used to create more than one CloudConfig object for each cloud/region combo. The regions field itself makes no sense to set on each of those CloudConfigs, so do not pass it through. Change-Id: I76b3bb3bc4778223d72f86d01d02ce150651b3b9 --- os_client_config/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/os_client_config/config.py b/os_client_config/config.py index 93d7aa0..6c3abff 100644 --- a/os_client_config/config.py +++ b/os_client_config/config.py @@ -423,6 +423,10 @@ class OpenStackConfig(object): config = self._get_base_cloud_config(cloud) + # Regions is a list that we can use to create a list of cloud/region + # objects. It does not belong in the single-cloud dict + config.pop('regions', None) + # Can't just do update, because None values take over for (key, val) in iter(args.items()): if val is not None: -- cgit v1.2.1