Merge pull request #1199 from corubba/bugfix/rrest-typo

Fix rrest typo in history detail
This commit is contained in:
Vasileios Markopoulos
2022-05-25 10:45:50 +03:00
committed by GitHub
5 changed files with 102 additions and 55 deletions

View File

@ -359,10 +359,10 @@ class Record(object):
# rollback - re-add the removed record if the adding operation is failed.
if del_rrsets["rrsets"]:
rollback_rrests = del_rrsets
rollback_rrsets = del_rrsets
for r in del_rrsets["rrsets"]:
r['changetype'] = 'REPLACE'
rollback = self.apply_rrsets(domain_name, rollback_rrests)
rollback = self.apply_rrsets(domain_name, rollback_rrsets)
if 'error' in rollback.keys():
return dict(status='error',
msg='Failed to apply changes. Cannot rollback previous failed operation: {}'