This will allow to redirect output of dry-run to a file
which will produce a multi-document yaml, and can be
parsed easily afterwards.
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
-import pprint
import yaml
import teuthology.beanstalk
raise ValueError("Please use a more descriptive value for --name")
job_config = build_config(args)
if args['--dry-run']:
- pprint.pprint(job_config)
+ print('---\n' + yaml.safe_dump(job_config))
else:
schedule_job(job_config, args['--num'], report_status)