From d1de9299cda6745e0db461e352955c5a354c0663 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Mon, 21 Oct 2013 14:12:23 +0200 Subject: Get the created range type in case of re-establishing trust This is a regression fix introduced by commit id: 285ed59889590ddd0d6ca2e2a030b28527941cbf Fixes internal error in case of re-establishing the trust. --- ipalib/plugins/trust.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipalib/plugins/trust.py b/ipalib/plugins/trust.py index f4e5d021..af7bf33a 100644 --- a/ipalib/plugins/trust.py +++ b/ipalib/plugins/trust.py @@ -342,6 +342,8 @@ sides. # provide a global mapping across all subdomains (created_range_type, _, _) = self.add_range(range_name, dom_sid, *keys, **options) + else: + created_range_type = old_range['result']['iparangetype'][0] trust_filter = "cn=%s" % result['value'] ldap = self.obj.backend -- cgit