mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
fixes error where a transport is not set for nxos (#21790)
Will now make sure transport is set to `cli`
This commit is contained in:
@@ -97,6 +97,10 @@ 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:
|
||||
self._task.args['transport'] = 'cli'
|
||||
|
||||
return super(ActionModule, self).run(tmp, task_vars)
|
||||
|
||||
def _get_socket_path(self, play_context):
|
||||
|
||||
Reference in New Issue
Block a user