summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Babej <tomasbabej@gmail.com>2013-10-21 14:12:23 +0200
committerMartin Kosek <mkosek@redhat.com>2013-10-21 15:45:35 +0200
commitd1de9299cda6745e0db461e352955c5a354c0663 (patch)
treebafec838ee6398504b90e510a1f48f40fbe06634
parente6738ea68f318c45ad901f8ecfe2d9d94694c7f4 (diff)
downloadfreeipa.git-d1de9299cda6745e0db461e352955c5a354c0663.tar.gz
freeipa.git-d1de9299cda6745e0db461e352955c5a354c0663.tar.xz
freeipa.git-d1de9299cda6745e0db461e352955c5a354c0663.zip
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.
-rw-r--r--ipalib/plugins/trust.py2
1 files changed, 2 insertions, 0 deletions
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