mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Cloud/DigitalOcean: Don't throw error when deleting instance, fixes #58190
This commit is contained in:
parent
9e95e3b2bf
commit
54cf836d58
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue