From 6d5c2202c0bc0c4d2e1ab7d5d4bd7bdd631bd465 Mon Sep 17 00:00:00 2001 From: asteroide Date: Wed, 14 Oct 2015 21:24:57 +0200 Subject: Change the way the tenant dict is updated with Keystone information on the add_tenant_dict. Change-Id: Ifa164a51b0195f546b97267ffca677bbf3a18eca --- keystone-moon/keystone/contrib/moon/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'keystone-moon') diff --git a/keystone-moon/keystone/contrib/moon/core.py b/keystone-moon/keystone/contrib/moon/core.py index f1bba652..bca90adb 100644 --- a/keystone-moon/keystone/contrib/moon/core.py +++ b/keystone-moon/keystone/contrib/moon/core.py @@ -411,7 +411,9 @@ class TenantManager(manager.Manager): if 'id' not in tenant_dict: tenant_dict['id'] = None keystone_tenant = self.__get_keystone_tenant_dict(tenant_dict['id'], tenant_dict['name']) - tenant_dict.update(keystone_tenant) + for att in keystone_tenant: + if keystone_tenant[att]: + tenant_dict[att] = keystone_tenant[att] # Sync users between intra_authz_extension and intra_admin_extension self.moonlog_api.debug("add_tenant_dict {}".format(tenant_dict)) if 'intra_admin_extension_id' in tenant_dict and tenant_dict['intra_admin_extension_id']: -- cgit 1.2.3-korg