From 54cf836d58939d8c507d14e11d230f7fe4640ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20Moso=C5=84?= Date: Sun, 2 May 2021 18:36:51 +0200 Subject: [PATCH] Cloud/DigitalOcean: Don't throw error when deleting instance, fixes #58190 --- salt/cloud/clouds/digitalocean.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/cloud/clouds/digitalocean.py b/salt/cloud/clouds/digitalocean.py index 91c1ef71fa1..487179f6de0 100644 --- a/salt/cloud/clouds/digitalocean.py +++ b/salt/cloud/clouds/digitalocean.py @@ -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: