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 #172
  • Loading branch information
leedm777 committed Jan 27, 2021
1 parent 6c88315 commit aa8cbff
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 aa8cbff

Please sign in to comment.