Commit d4dd4b74 authored by Iustin Pop's avatar Iustin Pop
Browse files

gnt-instance batch-create: use the job executor

This small patch changed the batch create functionality to use the job
executor instead of single-job submits.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarGuido Trotter <>
parent 23b4b983
......@@ -440,6 +440,8 @@ def BatchCreate(opts, args):
ToStderr("Can't parse the instance definition file: %s" % str(err))
return 1
jex = JobExecutor()
# Iterate over the instances and do:
# * Populate the specs with default value
# * Validate the instance specs
......@@ -485,7 +487,9 @@ def BatchCreate(opts, args):
ToStdout("%s: %s", name, cli.SendJob([op]))
jex.QueueJob(name, op)
# we never want to wait, just show the submitted job IDs
return 0
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