diff --git a/os_client_config/config.py b/os_client_config/config.py index 54048aa..6eed0f0 100644 --- a/os_client_config/config.py +++ b/os_client_config/config.py @@ -388,7 +388,10 @@ class OpenStackConfig(object): if 'regions' in config: return self._expand_regions(config['regions']) elif 'region_name' in config: - regions = config['region_name'].split(',') + if isinstance(config['region_name'], list): + regions = config['region_name'] + else: + regions = config['region_name'].split(',') if len(regions) > 1: warnings.warn( "Comma separated lists in region_name are deprecated."