Get the created range type in case of re-establishing trust

This is a regression fix introduced by commit id:
285ed59889

Fixes internal error in case of re-establishing the trust.
This commit is contained in:
Tomas Babej
2013-10-21 14:12:23 +02:00
committed by Martin Kosek
parent f34b8896f9
commit ced2170b9d

View File

@@ -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