-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update cnos_backup.py #44246
Update cnos_backup.py #44246
Conversation
The test
|
description: | ||
- This module allows you to work with switch configurations. It provides a | ||
way to back up the running or startup configurations of a switch to a | ||
remote server. This is achieved by periodically saving a copy of the | ||
startup or running configuration of the network device to a remote server | ||
using FTP, SFTP, TFTP, or SCP. The first step is to create a directory from | ||
using FTP, SFTP, TFTP, or SCP. The first step is to create directory from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to drop the word 'a' here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will add the 'a' back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will also remove the unwanted code from cnos.py along with this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused code in cnos.py will be removed later together with few more modules
I think I get why you are doing this, if you've been making edits to module_utils/cnos and it is hard to filter out what changes go for which module PR, but it makes this much harder to review and will make the later PR with many unrelated changes to the module_utils code much harder to review. I feel it should not be too onerous to ask you to keep related changes together.
Done as per the review coments |
SUMMARY
In this PR I am moving the code which is in util file cnos.py to respective module code. There was a review comment is this regard that util file is of huge size. This is an effort to reduce the size.
ISSUE TYPE
COMPONENT NAME
lib\ansible\modules\network\cnos\cnos_backup.py
ANSIBLE VERSION
ansible 2.7.0.dev0 (devel f9cbdcd) last updated 2018/07/03 14:55:43 (GMT +550)
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/ansible/sheru/ansible/lib/ansible
executable location = /home/ansible/sheru/ansible/bin/ansible
python version = 2.7.6 (default, Nov 23 2017, 15:49:48) [GCC 4.8.4]
ADDITIONAL INFORMATION
Unused code in cnos.py will be removed later together with few more modules