From d8aaac094494a2c18393263c99c817bcf8dcad4e Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Tue, 16 Mar 2021 08:20:57 -0500 Subject: [PATCH] Fix UnboundLocalError in sqs_queue (#389) * Fix UnboundLocalError in sqs_queue The variable `existing_value` is nowhere to be found, but looks like this might have been missed in a rename. Changing to `value`. Fixes #172 * integration test * changelog Co-authored-by: Mark Chappell --- sqs_queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqs_queue.py b/sqs_queue.py index b0565c6c8d0..b76cdb31410 100644 --- a/sqs_queue.py +++ b/sqs_queue.py @@ -375,7 +375,7 @@ def update_sqs_queue(module, client, queue_url): if isinstance(new_value, bool): new_value = str(new_value).lower() - existing_value = str(existing_value).lower() + value = str(value).lower() if new_value == value: continue