mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 23:31:25 -07:00
fixes import statement in nxos_facts module (#21834)
trying to import from the wrong shared lib, this patch changes network_common to connection. Also fixes a bug found in the nxos action plugin to detect transport fixes #21829
This commit is contained in:
parent
551a765ea5
commit
ab0f992b3a
2 changed files with 4 additions and 2 deletions
|
@ -99,7 +99,9 @@ class ActionModule(_ActionModule):
|
|||
self._task.args['provider'] = provider_arg
|
||||
|
||||
# make sure a transport value is set in args
|
||||
if self._task.args.get('transport') is None and self._task.args.get('provider').get('transport') is None:
|
||||
transport = self._task.args.get('transport')
|
||||
provider_transport = (self._task.args.get('provider') or {}).get('transport')
|
||||
if all((transport is None, provider_transport is None)):
|
||||
self._task.args['transport'] = 'cli'
|
||||
|
||||
return super(ActionModule, self).run(tmp, task_vars)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue