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
# 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):