mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-07 19:05:39 +00:00
Fix remaining typo occurrence
This commit is contained in:
parent
0dfcdb6c3e
commit
f98326ea90
@ -359,10 +359,10 @@ class Record(object):
|
|||||||
|
|
||||||
# rollback - re-add the removed record if the adding operation is failed.
|
# rollback - re-add the removed record if the adding operation is failed.
|
||||||
if del_rrsets["rrsets"]:
|
if del_rrsets["rrsets"]:
|
||||||
rollback_rrests = del_rrsets
|
rollback_rrsets = del_rrsets
|
||||||
for r in del_rrsets["rrsets"]:
|
for r in del_rrsets["rrsets"]:
|
||||||
r['changetype'] = 'REPLACE'
|
r['changetype'] = 'REPLACE'
|
||||||
rollback = self.apply_rrsets(domain_name, rollback_rrests)
|
rollback = self.apply_rrsets(domain_name, rollback_rrsets)
|
||||||
if 'error' in rollback.keys():
|
if 'error' in rollback.keys():
|
||||||
return dict(status='error',
|
return dict(status='error',
|
||||||
msg='Failed to apply changes. Cannot rollback previous failed operation: {}'
|
msg='Failed to apply changes. Cannot rollback previous failed operation: {}'
|
||||||
|
Loading…
Reference in New Issue
Block a user