From 7cf016a21558803039cfadd2b98cc5cab528972f Mon Sep 17 00:00:00 2001 From: Michael Basnight Date: Wed, 5 Dec 2012 16:00:11 -0600 Subject: Fixing the trim for ListOp when reading from config file Fixes Bug 1087018 Change-Id: I1c2d34166ae85add86daab6a7483b63297d00f66 --- openstack/common/cfg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openstack') diff --git a/openstack/common/cfg.py b/openstack/common/cfg.py index dabcf09..7924e48 100644 --- a/openstack/common/cfg.py +++ b/openstack/common/cfg.py @@ -750,7 +750,7 @@ class ListOpt(Opt): def _get_from_config_parser(self, cparser, section): """Retrieve the opt value as a list from ConfigParser.""" - return [v.split(',') for v in + return [[a.strip() for a in v.split(',')] for v in self._cparser_get_with_deprecated(cparser, section)] def _get_argparse_kwargs(self, group, **kwargs): -- cgit