diff options
author | Matt Clay <matt@mystile.com> | 2021-12-10 20:51:34 +0100 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2021-12-10 21:29:13 +0100 |
commit | 470c89518ce9f45c511de8d76332a49544182da9 (patch) | |
tree | b1c7b761457cbaac15d6736402459e8db4706e61 /test | |
parent | plugins/dnf, plugins/yum: implement sslverify option (#76356) (diff) | |
download | ansible-470c89518ce9f45c511de8d76332a49544182da9.tar.xz ansible-470c89518ce9f45c511de8d76332a49544182da9.zip |
ansible-test - Fix delegation from install.
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/ansible_test/_internal/delegation.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/lib/ansible_test/_internal/delegation.py b/test/lib/ansible_test/_internal/delegation.py index aaee0dfac0..83ff24c0da 100644 --- a/test/lib/ansible_test/_internal/delegation.py +++ b/test/lib/ansible_test/_internal/delegation.py @@ -53,7 +53,6 @@ from .ci import ( from .host_configs import ( OriginConfig, PythonConfig, - VirtualPythonConfig, ) from .connections import ( @@ -254,9 +253,9 @@ def generate_command( ANSIBLE_TEST_CONTENT_ROOT=content_root, ) - if isinstance(args.controller.python, VirtualPythonConfig): - # Expose the ansible and ansible_test library directories to the virtual environment. - # This is only required when running from an install. + if isinstance(args.controller, OriginConfig): + # Expose the ansible and ansible_test library directories to the Python environment. + # This is only required when delegation is used on the origin host. library_path = process_scoped_temporary_directory(args) os.symlink(ANSIBLE_LIB_ROOT, os.path.join(library_path, 'ansible')) |