]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Automatically watch 'multi' tube if tube_name
authorZack Cerza <zack@cerza.org>
Tue, 10 Jun 2014 19:40:37 +0000 (14:40 -0500)
committerZack Cerza <zack@cerza.org>
Tue, 10 Jun 2014 19:40:37 +0000 (14:40 -0500)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/beanstalk.py

index 7eee0c1adfc7419258fb326ddb8b261112b01a03..1c2b60ccc7f868b40435006f08bd11bccdb2d690 100644 (file)
@@ -21,6 +21,9 @@ def connect():
 
 
 def watch_tube(connection, tube_name):
+    if ',' in tube_name:
+        log.debug("Correcting tube name to 'multi'")
+        tube_name = 'multi'
     connection.watch(tube_name)
     connection.ignore('default')