From 2759c2239862ebe9bf7b6656936c65753e5c2cfc Mon Sep 17 00:00:00 2001 From: Dolph Mathews Date: Wed, 29 Aug 2012 13:55:40 -0500 Subject: [PATCH] Check for expected cfg impl (bug 1043479) Change-Id: Id2ac85d4ac61713c0ca8e2c10e68cbdeeadff4cb --- keystone/middleware/auth_token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keystone/middleware/auth_token.py b/keystone/middleware/auth_token.py index 5f9828b007..1f565eb3fc 100644 --- a/keystone/middleware/auth_token.py +++ b/keystone/middleware/auth_token.py @@ -120,7 +120,7 @@ except ImportError: cfg = __import__('%s.openstack.common.cfg' % app, fromlist=['%s.openstack.common' % app]) # test which application middleware is running in - if 'config_file' in cfg.CONF: + if hasattr(cfg, 'CONF') and 'config_file' in cfg.CONF: CONF = cfg.CONF break except ImportError: