Cloud/DigitalOcean: Don't throw error when deleting instance, fixes #58190

This commit is contained in:
Konrad Mosoń 2021-05-02 18:36:51 +02:00 committed by Daniel Wozniak
parent 9e95e3b2bf
commit 54cf836d58

View file

@ -985,7 +985,7 @@ def destroy_dns_records(fqdn):
records = response["domain_records"]
if records:
record_ids = [r["id"] for r in records if r["name"].decode() == hostname]
record_ids = [r["id"] for r in records if r["name"] == hostname]
log.debug("deleting DNS record IDs: %s", record_ids)
for id_ in record_ids:
try: