DNS Locations: fix location-del

The wrong option was used

https://fedorahosted.org/freeipa/ticket/2008

Reviewed-By: Petr Spacek <pspacek@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Martin Basti
2016-06-09 18:01:23 +02:00
parent 0f5cca0e45
commit d7671ee667

View File

@@ -142,7 +142,8 @@ class location_del(LDAPDelete):
servers = self.api.Command.server_find(
in_location=keys[-1])['result']
for server in servers:
self.api.Command.server_mod(server['cn'][0], location=None)
self.api.Command.server_mod(server['cn'][0],
ipalocation_location=None)
return dn