"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/ansible/plugins/action/nxos.py" between
ansible-2.7.6.tar.gz and ansible-2.7.7.tar.gz

About: Ansible is a platform for configuring and managing computers combining multi-node software deployment, ad hoc task execution, and configuration management.

nxos.py  (ansible-2.7.6):nxos.py  (ansible-2.7.7)
skipping to change at line 58 skipping to change at line 58
if self._task.action == 'nxos_file_copy': if self._task.action == 'nxos_file_copy':
self._task.args['host'] = self._play_context.remote_addr self._task.args['host'] = self._play_context.remote_addr
self._task.args['password'] = self._play_context.password self._task.args['password'] = self._play_context.password
if self._play_context.connection == 'network_cli': if self._play_context.connection == 'network_cli':
self._task.args['username'] = self._play_context.remote_user self._task.args['username'] = self._play_context.remote_user
elif self._play_context.connection == 'local': elif self._play_context.connection == 'local':
self._task.args['username'] = self._play_context.connection_user self._task.args['username'] = self._play_context.connection_user
if self._task.action == 'nxos_install_os': if self._task.action == 'nxos_install_os':
if C.PERSISTENT_COMMAND_TIMEOUT < 600 or C.PERSISTENT_CONNECT_TIMEOU connection = self._connection
T < 600: if connection.get_option('persistent_command_timeout') < 600 or conn
ection.get_option('persistent_connect_timeout') < 600:
msg = 'PERSISTENT_COMMAND_TIMEOUT and PERSISTENT_CONNECT_TIMEOUT ' msg = 'PERSISTENT_COMMAND_TIMEOUT and PERSISTENT_CONNECT_TIMEOUT '
msg += ' must be set to 600 seconds or higher when using nxos_in stall_os module' msg += ' must be set to 600 seconds or higher when using nxos_in stall_os module'
return {'failed': True, 'msg': msg} return {'failed': True, 'msg': msg}
if self._play_context.connection in ('network_cli', 'httpapi'): if self._play_context.connection in ('network_cli', 'httpapi'):
provider = self._task.args.get('provider', {}) provider = self._task.args.get('provider', {})
if any(provider.values()): if any(provider.values()):
display.warning('provider is unnecessary when using %s and will be ignored' % self._play_context.connection) display.warning('provider is unnecessary when using %s and will be ignored' % self._play_context.connection)
del self._task.args['provider'] del self._task.args['provider']
if self._task.args.get('transport'): if self._task.args.get('transport'):
 End of changes. 1 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)