From 39ef653bc2104b73d671bbb5a73d76018e6090f0 Mon Sep 17 00:00:00 2001 From: Geraint Jones Date: Mon, 15 Jun 2015 12:02:25 +0000 Subject: [PATCH] Rabbitmq 3.2.4 on Ubuntu has ...done. not ...done, change the if to be more portable --- salt/modules/rabbitmq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/rabbitmq.py b/salt/modules/rabbitmq.py index 8f3f256678..64d53ac21d 100644 --- a/salt/modules/rabbitmq.py +++ b/salt/modules/rabbitmq.py @@ -72,7 +72,7 @@ def _strip_listing_to_done(output_list): # some versions of rabbitmq have no trailing '...done' line, # which some versions do not output. l_line = ''.join(output_list[-1:]) - if l_line == '...done': + if '...done' in l_line: output_list.pop() return output_list