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:
parent
a4ae0c85f1
commit
f8157d579a
1 changed files with 4 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue