Fix ansible-test --exclude with delegation.
Previously the option worked with integration commands but not units or sanity.
(cherry picked from commit 38eba60849
)
This commit is contained in:
parent
7229a9895f
commit
40db4a9cdb
2 changed files with 2 additions and 2 deletions
|
@ -1235,7 +1235,7 @@ def command_units(args):
|
|||
raise AllTargetsSkipped()
|
||||
|
||||
if args.delegate:
|
||||
raise Delegate(require=changes)
|
||||
raise Delegate(require=changes, exclude=args.exclude)
|
||||
|
||||
version_commands = []
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ def command_sanity(args):
|
|||
raise AllTargetsSkipped()
|
||||
|
||||
if args.delegate:
|
||||
raise Delegate(require=changes)
|
||||
raise Delegate(require=changes, exclude=args.exclude)
|
||||
|
||||
install_command_requirements(args)
|
||||
|
||||
|
|
Loading…
Reference in a new issue