aboutsummaryrefslogtreecommitdiffstats
path: root/keystone-moon/keystone
diff options
context:
space:
mode:
authorasteroide <thomas.duval@orange.com>2016-01-27 09:13:32 +0100
committerasteroide <thomas.duval@orange.com>2016-01-27 09:13:32 +0100
commit7be2f3dfff8541051c641e5715d6d70705cab5f7 (patch)
tree2d73885bfd70e745dd4624a5ee7c75deda594b08 /keystone-moon/keystone
parentf5f02969a70b1df896491f045f41ab9056decf00 (diff)
Fix a bug when a tenant is not connected to an intra-extension.
Change-Id: I6b415ab8042e47009fd101821bd51a2b1bd0341a
Diffstat (limited to 'keystone-moon/keystone')
-rw-r--r--keystone-moon/keystone/contrib/moon/core.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/keystone-moon/keystone/contrib/moon/core.py b/keystone-moon/keystone/contrib/moon/core.py
index 5d1198d1..53b81574 100644
--- a/keystone-moon/keystone/contrib/moon/core.py
+++ b/keystone-moon/keystone/contrib/moon/core.py
@@ -2189,6 +2189,8 @@ class IntraExtensionAuthzManager(IntraExtensionManager):
self.get_data_from_master()
return self.__authz(tenant_id, subject_k_id, object_name, action_name, genre="authz")
raise e
+ except TenantNoIntraExtension:
+ return {'authz': True, 'comment': "Cannot authz because Tenant is not managed by Moon {}".format(tenant_id)}
def add_subject_dict(self, user_id, intra_extension_id, subject_dict):
subject = super(IntraExtensionAuthzManager, self).add_subject_dict(user_id, intra_extension_id, subject_dict)