[stable-2.13] ansible-test - Fix shell target options handling.

(cherry picked from commit f933314101)

Co-authored-by: Matt Clay <matt@mystile.com>
pull/77953/head
Matt Clay 2 years ago
parent 2b6df9ea36
commit 44ce9fe998

@ -0,0 +1,2 @@
bugfixes:
- ansible-test - Prevent ``--target-`` prefixed options for the ``shell`` command from being combined with legacy environment options.

@ -201,6 +201,9 @@ def convert_legacy_args(
'--controller',
'--target',
'--target-python',
'--target-posix',
'--target-windows',
'--target-network',
]
used_old_options = old_options.get_options_used()

Loading…
Cancel
Save