Rabbitmq 3.2.4 on Ubuntu has ...done. not ...done, change the if to be more portable

This commit is contained in:
Geraint Jones 2015-06-15 12:02:25 +00:00 committed by Jeff Quast
parent 65ab5aa495
commit 39ef653bc2

View File

@ -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