Support ansible-test --truncate with delegation.

This commit is contained in:
Matt Clay 2018-02-17 20:34:27 -08:00
parent 4a5809f111
commit 5bc9bb9fbb

View file

@ -366,6 +366,7 @@ def filter_options(args, argv, options, exclude, require):
options = options.copy() options = options.copy()
options['--requirements'] = 0 options['--requirements'] = 0
options['--truncate'] = 1
if isinstance(args, TestConfig): if isinstance(args, TestConfig):
options.update({ options.update({
@ -414,3 +415,6 @@ def filter_options(args, argv, options, exclude, require):
if args.metadata_path: if args.metadata_path:
yield '--metadata' yield '--metadata'
yield args.metadata_path yield args.metadata_path
yield '--truncate'
yield '%d' % args.truncate