cloudstack: cs_region: fix pep8 (#24134)

pull/24140/head
René Moser 8 years ago committed by GitHub
parent 1c05ed7951
commit 594d7d5d9d

@ -91,20 +91,26 @@ endpoint:
type: string type: string
sample: http://cloud.example.com sample: http://cloud.example.com
gslb_service_enabled: gslb_service_enabled:
description: Whether the GSLB service is enabled or not description: Whether the GSLB service is enabled or not.
returned: success returned: success
type: bool type: bool
sample: true sample: true
portable_ip_service_enabled: portable_ip_service_enabled:
description: Whether the portable IP service is enabled or not description: Whether the portable IP service is enabled or not.
returned: success returned: success
type: bool type: bool
sample: true sample: true
''' '''
from ansible.module_utils.cloudstack import *
from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.cloudstack import (
AnsibleCloudStack,
CloudStackException,
cs_argument_spec,
cs_required_together
)
class AnsibleCloudStackRegion(AnsibleCloudStack): class AnsibleCloudStackRegion(AnsibleCloudStack):
@ -175,8 +181,8 @@ def main():
argument_spec = cs_argument_spec() argument_spec = cs_argument_spec()
argument_spec.update(dict( argument_spec.update(dict(
id=dict(required=True, type='int'), id=dict(required=True, type='int'),
name=dict(default=None), name=dict(),
endpoint=dict(default=None), endpoint=dict(),
state=dict(choices=['present', 'absent'], default='present'), state=dict(choices=['present', 'absent'], default='present'),
)) ))
@ -205,5 +211,6 @@ def main():
module.exit_json(**result) module.exit_json(**result)
if __name__ == '__main__': if __name__ == '__main__':
main() main()

@ -245,7 +245,6 @@ lib/ansible/modules/cloud/cloudstack/cs_nic.py
lib/ansible/modules/cloud/cloudstack/cs_pod.py lib/ansible/modules/cloud/cloudstack/cs_pod.py
lib/ansible/modules/cloud/cloudstack/cs_portforward.py lib/ansible/modules/cloud/cloudstack/cs_portforward.py
lib/ansible/modules/cloud/cloudstack/cs_project.py lib/ansible/modules/cloud/cloudstack/cs_project.py
lib/ansible/modules/cloud/cloudstack/cs_region.py
lib/ansible/modules/cloud/cloudstack/cs_router.py lib/ansible/modules/cloud/cloudstack/cs_router.py
lib/ansible/modules/cloud/cloudstack/cs_securitygroup.py lib/ansible/modules/cloud/cloudstack/cs_securitygroup.py
lib/ansible/modules/cloud/cloudstack/cs_securitygroup_rule.py lib/ansible/modules/cloud/cloudstack/cs_securitygroup_rule.py

Loading…
Cancel
Save