From 1a138049f75182c4377efa03b55c72c84458a0f6 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Fri, 26 Feb 2021 18:39:10 +0800 Subject: [PATCH] fix: miss attr _discovery_cache in ServiceTokenAuthWrapper Add the super method to the ServiceTokenAuthWrapper class to get the _discovery_cache attribute of the parent class. the error info is below while neutron is authenticated by keystoneauth plug in task inspector enroll baremetal node: ERROR oslo_messaging.rpc.server: Exception during message handling: AttributeError: 'ServiceTokenAuthWrapper' object has no attribute '_discovery_cache' Change-Id: Icc7c4e25a123b5565c94f43f932ee32f9f304a76 --- keystoneauth1/service_token.py | 1 + 1 file changed, 1 insertion(+) diff --git a/keystoneauth1/service_token.py b/keystoneauth1/service_token.py index d06402b6..3cd7e605 100644 --- a/keystoneauth1/service_token.py +++ b/keystoneauth1/service_token.py @@ -20,6 +20,7 @@ __all__ = ('ServiceTokenAuthWrapper',) class ServiceTokenAuthWrapper(plugin.BaseAuthPlugin): def __init__(self, user_auth, service_auth): + super(ServiceTokenAuthWrapper, self).__init__() self.user_auth = user_auth self.service_auth = service_auth