summaryrefslogtreecommitdiffstats
path: root/keystone/openstack/common/iniparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'keystone/openstack/common/iniparser.py')
-rw-r--r--keystone/openstack/common/iniparser.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/keystone/openstack/common/iniparser.py b/keystone/openstack/common/iniparser.py
index 53ca0233..24128444 100644
--- a/keystone/openstack/common/iniparser.py
+++ b/keystone/openstack/common/iniparser.py
@@ -52,7 +52,11 @@ class BaseParser(object):
else:
key, value = line[:colon], line[colon + 1:]
- return key.strip(), [value.strip()]
+ value = value.strip()
+ if ((value and value[0] == value[-1]) and
+ (value[0] == "\"" or value[0] == "'")):
+ value = value[1:-1]
+ return key.strip(), [value]
def parse(self, lineiter):
key = None