Remove commented out test, my bad

This commit is contained in:
Rebecca Hsieh 2023-10-02 14:10:22 -07:00
parent 095f7ca56f
commit 24f4346e55
No known key found for this signature in database
GPG key ID: 644527A2F375A379

View file

@ -399,23 +399,6 @@ class Domain(TimeStampedModel, DomainHelper):
)
return successCreatedCount
# def _update_delete_create_hosts(
# self, deleted_values, updated_values, new_values, oldNameservers
# ):
# for hostTuple in updated_values:
# updated_response_code = self._update_host(
# hostTuple[0], hostTuple[1], oldNameservers.get(hostTuple[0])
# )
# if updated_response_code not in [
# ErrorCode.COMMAND_COMPLETED_SUCCESSFULLY,
# ErrorCode.OBJECT_EXISTS,
# ]:
# logger.warning(
# "Could not update host %s. Error code was: %s "
# % (hostTuple[0], updated_response_code)
# )
@nameservers.setter # type: ignore
def nameservers(self, hosts: list[tuple[str, list]]):
"""host should be a tuple of type str, str,... where the elements are