-
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
Adding exos_command cli_conf module #37775
Conversation
The test
The test
The test
The test
The test
The test
The test
The test
|
The test
The test
The test
The test
The test
The test
The test
|
return module._exos_capabilities | ||
|
||
|
||
def check_args(module, warnings): |
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.
This function is not required.
module: exos_command | ||
version_added: "2.6" | ||
author: "Rafael D. Vencioneck (@rdvencioneck)" | ||
short_description: Run commands on remote devices running EXOS |
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.
Please include the company name in the short_description to make it easier for people to find the modules
See http://docs.ansible.com/ansible/latest/modules/list_of_network_modules.html
before moving forward. If the conditional is not true | ||
within the configured number of retries, the task fails. | ||
See examples. | ||
required: false |
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.
required: false lines can be removed, as that's the default
See examples. | ||
required: false | ||
default: null | ||
aliases: ['waitfor'] |
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.
waitfor
is an old name and not required to be added to new modules. This line can be removed.
argument_spec = dict( | ||
commands=dict(type='list', required=True), | ||
|
||
wait_for=dict(type='list', aliases=['waitfor']), |
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.
aliases
can be removed
@ganeshrn thank you for your review! I'm committing the requested changes right now. |
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.
Please update the new files added in this PR https://github.com/ansible/ansible/blob/devel/.github/BOTMETA.yml along with your GitHub handle
* Adding exos_command cli_conf module * fixing documentation, indentation and metadata_version * removing doc fragmentation and adding required import * removing unnecessary code and including company name on short_description * updating BOTMETA.yml with exos module information
* Adding exos_command cli_conf module * fixing documentation, indentation and metadata_version * removing doc fragmentation and adding required import * removing unnecessary code and including company name on short_description * updating BOTMETA.yml with exos module information
* Adding exos_command cli_conf module * fixing documentation, indentation and metadata_version * removing doc fragmentation and adding required import * removing unnecessary code and including company name on short_description * updating BOTMETA.yml with exos module information
SUMMARY
This PR adds suport for running "read-only" commands on Extreme OS (EXOS)
ISSUE TYPE
COMPONENT NAME
exos_command