-
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 hpilo_boot.py #24499
Update hpilo_boot.py #24499
Conversation
Add option to change the ssl version to connect to the remotr iLO
added version_added
fix lib/ansible/modules/remote_management/hpilo/hpilo_boot.py:83:25: W291 trailing whitespace
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.
shipit
shipit |
@@ -75,6 +75,12 @@ | |||
- As a safeguard, without force, hpilo_boot will refuse to reboot a server that is already running. | |||
default: no | |||
choices: [ "yes", "no" ] | |||
ssl_version: | |||
description: | |||
- Change the ssl_version used |
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.
Just to nitpick, I would have indented this one as the others, and have a trailing dot.
But those are not showstoppers.
description: | ||
- Change the ssl_version used | ||
default: TLSv1 | ||
choices: ['SSLv3','SSLv23','TLSv1','TLSv1_1','TLSv1_2'] |
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.
Another nitpick, the various items do not have to be quoted in YAML/JSON.
They have to be quoted for "yes" and "no" because these would otherwise be considered booleans.
Yes, YAML is tricky in many ways :-P
@@ -147,8 +154,9 @@ def main(): | |||
image = module.params['image'] | |||
state = module.params['state'] | |||
force = module.params['force'] | |||
ssl_version = getattr(hpilo.ssl, 'PROTOCOL_' + module.params.get('ssl_version').upper().replace('V','v')) |
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.
The upper()
and replace()
calls here seem unneeded given that the input is very strictly formatted already.
But that's not a showstopper either.
@bushvin If you could do the same for hpilo_facts, that would be appreciated. |
Will do so @dagwieers |
nitpicking fixes :)
shipit |
bot_status |
waiting_on: maintainer |
shipit |
Add option to change the ssl version to connect to the remotr iLO
SUMMARY
Default ssl connections may be unsupported, or disabled due to security requirements, hence the need to be able to change the type used.
ISSUE TYPE
COMPONENT NAME
hpilo_boot
ANSIBLE VERSION
ADDITIONAL INFORMATION