mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07:00
hpilo modules: PEP8 fixes (#27739)
This commit is contained in:
parent
d3e5d30f7c
commit
a34ef12d73
4 changed files with 27 additions and 29 deletions
|
@ -123,14 +123,14 @@ def main():
|
||||||
|
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
host = dict(required=True, type='str'),
|
host=dict(type='str', required=True),
|
||||||
login = dict(default='Administrator', type='str'),
|
login=dict(type='str', default='Administrator'),
|
||||||
password = dict(default='admin', type='str', no_log=True),
|
password=dict(type='str', default='admin', no_log=True),
|
||||||
media = dict(default=None, type='str', choices=['cdrom', 'floppy', 'rbsu', 'hdd', 'network', 'normal', 'usb']),
|
media=dict(type='str', choices=['cdrom', 'floppy', 'rbsu', 'hdd', 'network', 'normal', 'usb']),
|
||||||
image = dict(default=None, type='str'),
|
image=dict(type='str'),
|
||||||
state = dict(default='boot_once', type='str', choices=['boot_always', 'boot_once', 'connect', 'disconnect', 'no_boot', 'poweroff']),
|
state=dict(type='str', default='boot_once', choices=['boot_always', 'boot_once', 'connect', 'disconnect', 'no_boot', 'poweroff']),
|
||||||
force = dict(default=False, type='bool'),
|
force=dict(type='bool', default=False),
|
||||||
ssl_version = dict(default='TLSv1', choices=['SSLv3', 'SSLv23', 'TLSv1', 'TLSv1_1', 'TLSv1_2']),
|
ssl_version=dict(type='str', default='TLSv1', choices=['SSLv3', 'SSLv23', 'TLSv1', 'TLSv1_1', 'TLSv1_2']),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -183,8 +183,8 @@ def main():
|
||||||
module.fail_json(msg='HP iLO (%s) reports that the server is already powered on !' % host)
|
module.fail_json(msg='HP iLO (%s) reports that the server is already powered on !' % host)
|
||||||
|
|
||||||
if power_status == 'ON':
|
if power_status == 'ON':
|
||||||
#ilo.cold_boot_server()
|
|
||||||
ilo.warm_boot_server()
|
ilo.warm_boot_server()
|
||||||
|
# ilo.cold_boot_server()
|
||||||
changed = True
|
changed = True
|
||||||
else:
|
else:
|
||||||
ilo.press_pwr_btn()
|
ilo.press_pwr_btn()
|
||||||
|
|
|
@ -152,10 +152,10 @@ def main():
|
||||||
|
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
host = dict(required=True, type='str'),
|
host=dict(type='str', required=True),
|
||||||
login = dict(default='Administrator', type='str'),
|
login=dict(type='str', default='Administrator'),
|
||||||
password = dict(default='admin', type='str', no_log=True),
|
password=dict(type='str', default='admin', no_log=True),
|
||||||
ssl_version = dict(default='TLSv1', choices=['SSLv3', 'SSLv23', 'TLSv1', 'TLSv1_1', 'TLSv1_2']),
|
ssl_version=dict(type='str', default='TLSv1', choices=['SSLv3', 'SSLv23', 'TLSv1', 'TLSv1_1', 'TLSv1_2']),
|
||||||
),
|
),
|
||||||
supports_check_mode=True,
|
supports_check_mode=True,
|
||||||
)
|
)
|
||||||
|
|
|
@ -62,11 +62,12 @@ EXAMPLES = r'''
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
src = dict(required=True, type='path', aliases=['path']),
|
src=dict(type='path', required=True, aliases=['path']),
|
||||||
minfw=dict(type='str'),
|
minfw=dict(type='str'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -431,9 +431,6 @@ lib/ansible/modules/packaging/os/zypper.py
|
||||||
lib/ansible/modules/packaging/os/zypper_repository.py
|
lib/ansible/modules/packaging/os/zypper_repository.py
|
||||||
lib/ansible/modules/remote_management/foreman/foreman.py
|
lib/ansible/modules/remote_management/foreman/foreman.py
|
||||||
lib/ansible/modules/remote_management/foreman/katello.py
|
lib/ansible/modules/remote_management/foreman/katello.py
|
||||||
lib/ansible/modules/remote_management/hpilo/hpilo_boot.py
|
|
||||||
lib/ansible/modules/remote_management/hpilo/hpilo_facts.py
|
|
||||||
lib/ansible/modules/remote_management/hpilo/hponcfg.py
|
|
||||||
lib/ansible/modules/remote_management/stacki/stacki_host.py
|
lib/ansible/modules/remote_management/stacki/stacki_host.py
|
||||||
lib/ansible/modules/source_control/bzr.py
|
lib/ansible/modules/source_control/bzr.py
|
||||||
lib/ansible/modules/source_control/hg.py
|
lib/ansible/modules/source_control/hg.py
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue