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:
Martin Basti 2016-06-27 08:23:59 +02:00
parent deb99c11d4
commit c6f7d94d5b

View File

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