mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
DNS Locations: server-mod: fix if statement
Statement used for detection if objeclass change is needed was logically wrong, this fixes it. https://fedorahosted.org/freeipa/ticket/2008 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
parent
deb99c11d4
commit
c6f7d94d5b
@ -226,7 +226,7 @@ class server_mod(LDAPUpdate):
|
|||||||
self.api.Object.location.handle_not_found(
|
self.api.Object.location.handle_not_found(
|
||||||
options['ipalocation_location'])
|
options['ipalocation_location'])
|
||||||
|
|
||||||
if 'ipalocation' or 'ipaserviceweight' in entry_attrs:
|
if 'ipalocation' in entry_attrs or 'ipaserviceweight' in entry_attrs:
|
||||||
server_entry = ldap.get_entry(dn, ['objectclass'])
|
server_entry = ldap.get_entry(dn, ['objectclass'])
|
||||||
|
|
||||||
# we need to extend object with ipaLocationMember objectclass
|
# we need to extend object with ipaLocationMember objectclass
|
||||||
|
Loading…
Reference in New Issue
Block a user