Add helper to handle CLIs that optionally spawn several jobs
This helper function detects whether an opcode returned a list of jobs (i.e., a result of the type ht.TJobIdListOnly) and in this case it uses 'ganeti.cli.JobExecutor' to wait for the jobs and determine the return code which is based on the return codes of all jobs. Signed-off-by:Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
Showing
lib/client/base.py
0 → 100644
Please register or sign in to comment