Commit 719f8fba authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

jqueue: Allow zero jobs to be submitted at once

If cmdlib.LUNodeMigrate was called for a node without primary instances
it would try to submit an empty list of jobs. This was never visible via
CLI as there we check the list of primary instances first.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarRené Nussbaumer <>
parent 07abe80a
......@@ -1798,7 +1798,8 @@ class JobQueue(object):
@return: a string representing the job identifier.
assert count > 0
assert ht.TPositiveInt(count)
# New number
serial = self._last_serial + count
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment