1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02: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:
Peter Sprygada 2017-02-22 12:47:21 -05:00 committed by GitHub
parent a4ae0c85f1
commit f8157d579a

View file

@ -97,6 +97,10 @@ class ActionModule(_ActionModule):
} }
self._task.args['provider'] = provider_arg 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) return super(ActionModule, self).run(tmp, task_vars)
def _get_socket_path(self, play_context): def _get_socket_path(self, play_context):