From 8b4f5ba064bd1602679c6a0865ed3e185db353d8 Mon Sep 17 00:00:00 2001 From: Manuel Sousa Date: Fri, 14 Apr 2017 23:51:40 +0100 Subject: [PATCH] Fix #23338 - rabbitmq_queue message ttl can't be 0 (#23448) --- lib/ansible/modules/messaging/rabbitmq_queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/messaging/rabbitmq_queue.py b/lib/ansible/modules/messaging/rabbitmq_queue.py index ef3cbfc6bc6..59579ceb651 100644 --- a/lib/ansible/modules/messaging/rabbitmq_queue.py +++ b/lib/ansible/modules/messaging/rabbitmq_queue.py @@ -224,7 +224,7 @@ def main(): 'dead_letter_exchange': 'x-dead-letter-exchange', 'dead_letter_routing_key': 'x-dead-letter-routing-key' }.items(): - if module.params[k]: + if module.params[k] is not None: module.params['arguments'][v] = module.params[k] # Exit if check_mode