Navigation Menu

Skip to content

Commit

Permalink
lookup_rabbitmq pika > 1.0.0 is_closing bug fix (ansible#61959)
Browse files Browse the repository at this point in the history
* In pika v1.0.0 BlockingChannel.is_closing was removed.  Updating
plugin accordingly.

Ref: pika/pika#1034

* Adding change fragment for is_closing bug.

* Updated change fragment description.
  • Loading branch information
Im0 authored and anas-shami committed Sep 23, 2019
1 parent f493397 commit d4c6de6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/lookup_rabbitmq-is_closing-bug.yml
@@ -0,0 +1,2 @@
bugfixes:
- rabbitmq lookup plugin - Fix for rabbitmq lookups failing when using pika v1.0.0 and newer.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/lookup/rabbitmq.py
Expand Up @@ -180,7 +180,7 @@ def run(self, terms, variables=None, url=None, queue=None, count=None):
else:
break

if connection.is_closing or connection.is_closed:
if connection.is_closed:
return [ret]
else:
try:
Expand Down

0 comments on commit d4c6de6

Please sign in to comment.