Skip to content

Commit

Permalink
Fix UnboundLocalError in sqs_queue (ansible-collections#389)
Browse files Browse the repository at this point in the history
* 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 ansible-collections#172

* integration test
* changelog
Co-authored-by: Mark Chappell <[email protected]>
  • Loading branch information
leedm777 authored Mar 16, 2021
1 parent 572274f commit d8aaac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 d8aaac0

Please sign in to comment.