---
hub/kojihub.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hub/kojihub.py b/hub/kojihub.py
index 4255f80..acdea2b 100644
--- a/hub/kojihub.py
+++ b/hub/kojihub.py
@@ -10535,7 +10535,7 @@ class Host(object):
update = UpdateProcessor('task',
clauses=['parent=%(parent)s'], values=locals())
update.set(awaited=True)
update.execute()
- else:
+ elif tasks:
# wait on specified subtasks
update = UpdateProcessor('task', clauses=['id IN %(tasks)s',
'parent=%(parent)s'], values=locals())
update.set(awaited=True)
@@ -10545,6 +10545,8 @@ class Host(object):
clauses=['id NOT IN %(tasks)s',
'parent=%(parent)s', 'awaited=true'])
update.set(awaited=False)
update.execute()
+ else:
+ logger.warning('taskSetWait called on empty task list by parent: %s',
parent)
def taskWaitCheck(self,parent):
--
2.1.0
Show replies by date