DNS Locations: fix update-system-records unpacking error

Method IPASystemRecords.records_list_from_node returns only list
consists only from record names not tuple, which caused unpacking error

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

Reviewed-By: Nikhil Dehadrai <ndehadra@redhat.com>
This commit is contained in:
Martin Basti 2016-07-22 13:32:31 +02:00
parent 34767ba259
commit 524719f420

View File

@ -1139,10 +1139,10 @@ class BindInstance(service.Service):
root_logger.error("Update of following records failed:")
for attr in (failed_ipa_rec, failed_loc_rec):
for rname, node, error in attr:
for record, e in IPASystemRecords.records_list_from_node(
for record in IPASystemRecords.records_list_from_node(
rname, node
):
root_logger.error("%s (%s)", record, e)
root_logger.error("%s (%s)", record, error)
def check_global_configuration(self):
"""