External connection plugins that do not set _sub_plugin trigger errors #79371
Labels
affects_2.13
bug
This issue/PR relates to a bug.
has_pr
This issue has an associated PR.
networking
Network category
P3
Priority 3 - Approved, No Time Limitation
test
This PR relates to tests.
traceback
This issue/PR includes a traceback.
Summary
At https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/connection/__init__.py#L282
Then at https://github.com/ansible/ansible/blob/devel/lib/ansible/executor/task_executor.py#L1081:
The built-in connection plugins all set
_sub_plugin
to some sane value, but older external plugins do notSuggested fix: check for '{}' in addition to 'None'
Issue Type
Bug Report
Component Name
executor
Ansible Version
Configuration
OS / Environment
Ubuntu 22.04.1 LTS (jammy) VM running Linux 5.15.0-52-generic
Steps to Reproduce
Use external connection plugin like https://github.com/nokia/ansible-networking-collections/tree/master/grpc
Expected Results
Playbook runs to completion
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: