mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix incorrect type comparison in trust-fetch-domains
Value needs to be unpacked from the list and converted before comparison. https://fedorahosted.org/freeipa/ticket/5182 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
e28a450720
commit
7688bbcc33
@ -1487,7 +1487,7 @@ class trust_fetch_domains(LDAPRetrieve):
|
||||
result['truncated'] = False
|
||||
|
||||
# For one-way trust fetch over DBus. we don't get the list in this case.
|
||||
if trust['ipanttrustdirection'] & TRUST_BIDIRECTIONAL != TRUST_BIDIRECTIONAL:
|
||||
if int(trust['ipanttrustdirection'][0]) != TRUST_BIDIRECTIONAL:
|
||||
fetch_trusted_domains_over_dbus(self.api, self.log, keys[0])
|
||||
result['summary'] = unicode(_('List of trust domains successfully refreshed. Use trustdomain-find command to list them.'))
|
||||
return result
|
||||
|
Loading…
Reference in New Issue
Block a user