mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-14 21:01:13 +00:00
Fix ansible-test --exclude with delegation.
Previously the option worked with integration commands but not units or sanity.
This commit is contained in:
@@ -1213,7 +1213,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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user