From 7f5d1a0b6bf60e3d120568aa33b7c6e825418ed3 Mon Sep 17 00:00:00 2001 From: Curtis Castrapel Date: Mon, 11 Jun 2018 15:40:15 -0700 Subject: [PATCH] sync error --- lemur/plugins/lemur_acme/route53.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lemur/plugins/lemur_acme/route53.py b/lemur/plugins/lemur_acme/route53.py index a6d3ca92..b55d215b 100644 --- a/lemur/plugins/lemur_acme/route53.py +++ b/lemur/plugins/lemur_acme/route53.py @@ -65,15 +65,17 @@ def create_txt_record(host, value, account_number): value, account_number=account_number ) + return zone_id, change_id -def delete_txt_record(change_id, account_number, host, value): - zone_id, _ = change_id - change_txt_record( - "DELETE", - zone_id, - host, - value, - account_number=account_number - ) +def delete_txt_record(change_ids, account_number, host, value): + for change_id in change_ids: + zone_id, _ = change_id + change_txt_record( + "DELETE", + zone_id, + host, + value, + account_number=account_number + )