Skip to content

Commit

Permalink
Fix UnboundLocalError in sqs_queue
Browse files Browse the repository at this point in the history
The variable `existing_value` is nowhere to be found, but looks like
this might have been missed in a rename. Changing to `value`.

Fixes ansible-collections#172
  • Loading branch information
leedm777 authored and tremble committed Mar 16, 2021
1 parent d24d8f1 commit a61ff7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/sqs_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a61ff7c

Please sign in to comment.