Workerpool.AddManyTasks: check tasks type
authorGuido Trotter <ultrotter@google.com>
Thu, 17 Jun 2010 13:32:55 +0000 (14:32 +0100)
committerGuido Trotter <ultrotter@google.com>
Thu, 17 Jun 2010 17:25:42 +0000 (18:25 +0100)
commit25e557a59ed2643ee6b0a9fb6f6cc71fd31c3e28
treee9dcfa8f4da5c7c01d1a5cc6c48a8c6d2fc52e30
parent7ed3248b5be3cb2305d7d2212ac9f541864e847e
Workerpool.AddManyTasks: check tasks type

Each task has to be a sequence, or the RunTask call will fail.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/workerpool.py
test/ganeti.workerpool_unittest.py