ansible.netcommon
ansible.netcommon copied to clipboard
network_resource failed to perform gather facts tasks
SUMMARY
network_resource failed to perform gather facts tasks
ISSUE TYPE
- Bug Report
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The full traceback is:
Traceback (most recent call last):
File "/home/rothakur/ansible-collections/collections/ansible_collections/ansible/netcommon/plugins/action/network.py", line 312, in _find_load_module
context = mloadr.find_plugin_with_context(
AttributeError: 'PluginLoader' object has no attribute 'find_plugin_with_context'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rothakur/ansible-collections/collections/ansible_collections/ansible-base/lib/ansible/executor/task_executor.py", line 146, in run
res = self._execute()
File "/home/rothakur/ansible-collections/collections/ansible_collections/ansible-base/lib/ansible/executor/task_executor.py", line 645, in _execute
result = self._handler.run(task_vars=variables)
File "/home/rothakur/ansible-collections/collections/ansible_collections/ansible/netcommon/plugins/action/network_resource.py", line 90, in run
result = self._run_resource_module()
File "/home/rothakur/ansible-collections/collections/ansible_collections/ansible/netcommon/plugins/action/network_resource.py", line 136, in _run_resource_module
result = action.run(task_vars=self._task_vars)
File "/home/rothakur/ansible-collections/collections/ansible_collections/junipernetworks/junos/plugins/action/junos.py", line 171, in run
result = super(ActionModule, self).run(task_vars=task_vars)
File "/home/rothakur/ansible-collections/collections/ansible_collections/ansible/netcommon/plugins/action/network.py", line 61, in run
filename, module = self._find_load_module()
File "/home/rothakur/ansible-collections/collections/ansible_collections/ansible/netcommon/plugins/action/network.py", line 324, in _find_load_module
module = importlib.import_module(fullname)
File "/usr/lib64/python3.8/importlib/__init__.py", line 118, in import_module
if name.startswith('.'):
AttributeError: 'NoneType' object has no attribute 'startswith'
fatal: [192.168.122.67]: FAILED! => {
"msg": "Unexpected failure during module execution.",
"stdout": ""
}