summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/trust.py
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:27 +0200
commitced2170b9d7957256763f7b20133d5219d632111 (patch)
tree5be4d6f2712cc9239a2bcd2199dded909a19b6fc /ipalib/plugins/trust.py
parentf34b8896f97ee8b29da7f167c7262071000727e4 (diff)
downloadfreeipa-ced2170b9d7957256763f7b20133d5219d632111.tar.gz
freeipa-ced2170b9d7957256763f7b20133d5219d632111.tar.xz
freeipa-ced2170b9d7957256763f7b20133d5219d632111.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.
Diffstat (limited to 'ipalib/plugins/trust.py')
-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 f4e5d021d..af7bf33a1 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