mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-07 08:54:01 -07:00
Bulk autopep8 (modules)
As agreed in 2017-12-07 Core meeting bulk fix pep8 issues Generated using: autopep8 1.3.3 (pycodestyle: 2.3.1) autopep8 -r --max-line-length 160 --in-place --ignore E305,E402,E722,E741 lib/ansible/modules Manually fix issues that autopep8 has introduced
This commit is contained in:
parent
d13d7e9404
commit
c57a7f05e1
314 changed files with 3462 additions and 3383 deletions
|
@ -118,7 +118,8 @@ def _wait_for_completion(profitbricks, promise, wait_timeout, msg):
|
|||
raise Exception(
|
||||
'Timed out waiting for async operation ' + msg + ' "' + str(
|
||||
promise['requestId']
|
||||
) + '" to complete.')
|
||||
) + '" to complete.')
|
||||
|
||||
|
||||
def _remove_datacenter(module, profitbricks, datacenter):
|
||||
try:
|
||||
|
@ -126,6 +127,7 @@ def _remove_datacenter(module, profitbricks, datacenter):
|
|||
except Exception as e:
|
||||
module.fail_json(msg="failed to remove the datacenter: %s" % str(e))
|
||||
|
||||
|
||||
def create_datacenter(module, profitbricks):
|
||||
"""
|
||||
Creates a Datacenter
|
||||
|
@ -148,7 +150,7 @@ def create_datacenter(module, profitbricks):
|
|||
name=name,
|
||||
location=location,
|
||||
description=description
|
||||
)
|
||||
)
|
||||
|
||||
try:
|
||||
datacenter_response = profitbricks.create_datacenter(datacenter=i)
|
||||
|
@ -166,6 +168,7 @@ def create_datacenter(module, profitbricks):
|
|||
except Exception as e:
|
||||
module.fail_json(msg="failed to create the new datacenter: %s" % str(e))
|
||||
|
||||
|
||||
def remove_datacenter(module, profitbricks):
|
||||
"""
|
||||
Removes a Datacenter.
|
||||
|
@ -197,6 +200,7 @@ def remove_datacenter(module, profitbricks):
|
|||
|
||||
return changed
|
||||
|
||||
|
||||
def main():
|
||||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue