diff --git a/scripts/gnt-instance b/scripts/gnt-instance index e7990baf6179eef39e645292976913efeb3410db..aa524981bbef0e2185e704aeb597c38d6ce1999f 100755 --- a/scripts/gnt-instance +++ b/scripts/gnt-instance @@ -441,6 +441,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 @@ -486,7 +488,9 @@ def BatchCreate(opts, args): file_storage_dir=specs['file_storage_dir'], file_driver=specs['file_driver']) - ToStdout("%s: %s", name, cli.SendJob([op])) + jex.QueueJob(name, op) + # we never want to wait, just show the submitted job IDs + jex.WaitOrShow(False) return 0