From bfe9abeaa8a7ec8403b8fae1a7a302aa0e060bf4 Mon Sep 17 00:00:00 2001 From: Pete Zaitcev Date: Thu, 2 Feb 2012 22:41:28 -0700 Subject: Fix "KeyError: 'service-header-mappings'" Someone changed the dashes for underscores in keystone.conf and forgot to update one place. Fix is trivial, tested to work. bug 925872 Change-Id: Ib448f55fb0a352b5782fe0241bb1977c1d1ab79b --- keystone/frontends/legacy_token_auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keystone/frontends/legacy_token_auth.py b/keystone/frontends/legacy_token_auth.py index acfcb140..a63395d5 100644 --- a/keystone/frontends/legacy_token_auth.py +++ b/keystone/frontends/legacy_token_auth.py @@ -92,7 +92,8 @@ class AuthProtocol(object): if "serviceCatalog" in auth: services = auth["serviceCatalog"] service_mappings = ast.literal_eval( - self.conf["service-header-mappings"]) + self.conf.get("service_header_mappings", + self.conf["service-header-mappings"])) for service in services: service_name = service["name"] service_urls = '' -- cgit