"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/ansible/modules/network/cnos/cnos_image.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.

cnos_image.py  (ansible-2.7.6):cnos_image.py  (ansible-2.7.7)
skipping to change at line 176 skipping to change at line 176
prompt = ['Confirm download operation', 'Password', prompt = ['Confirm download operation', 'Password',
'Do you want to change that to the standby image'] 'Do you want to change that to the standby image']
answer = ['y', password, 'y'] answer = ['y', password, 'y']
ftp_cmd = [{'command': command, 'prompt': prompt, 'answer': answer, ftp_cmd = [{'command': command, 'prompt': prompt, 'answer': answer,
'check_all': True}] 'check_all': True}]
cmd.extend(ftp_cmd) cmd.extend(ftp_cmd)
retVal = retVal + str(cnos.run_cnos_commands(module, cmd)) retVal = retVal + str(cnos.run_cnos_commands(module, cmd))
elif(protocol == "tftp"): elif(protocol == "tftp"):
command = "copy " + protocol + " " + protocol + "://" + server command = "copy " + protocol + " " + protocol + "://" + server
command = command + "/" + imgPath + " system-image " + imgType command = command + "/" + imgPath + " system-image " + imgType
command = command + + " vrf management" command = command + " vrf management"
prompt = ['Confirm download operation', prompt = ['Confirm download operation',
'Do you want to change that to the standby image'] 'Do you want to change that to the standby image']
answer = ['y', 'y'] answer = ['y', 'y']
tftp_cmd = [{'command': command, 'prompt': prompt, 'answer': answer, tftp_cmd = [{'command': command, 'prompt': prompt, 'answer': answer,
'check_all': True}] 'check_all': True}]
cmd.extend(tftp_cmd) cmd.extend(tftp_cmd)
retVal = retVal + str(cnos.run_cnos_commands(module, cmd)) retVal = retVal + str(cnos.run_cnos_commands(module, cmd))
else: else:
return "Error-110" return "Error-110"
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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