Skip to content

Commit 9b0c121

Browse files
committed
check rrset type before generating the patch request
1 parent 1ebd605 commit 9b0c121

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libcloud/dns/drivers/rcodezero.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,8 @@ def _to_patchrequest(self, zone, record, name, type, data, extra, action):
542542
# request
543543
continue
544544

545-
if name == r.name and r.id != id:
546-
# we have other records with the same name so make an update
545+
if name == r.name and type == r.type and r.id != id:
546+
# we have other records with the same name and type so make an update
547547
# request
548548
rrset["changetype"] = "update"
549549
content = {}

0 commit comments

Comments
 (0)