cloudstack: cs_region: fix pep8 (#24134)
This commit is contained in:
parent
1c05ed7951
commit
594d7d5d9d
2 changed files with 12 additions and 6 deletions
|
@ -91,20 +91,26 @@ endpoint:
|
|||
type: string
|
||||
sample: http://cloud.example.com
|
||||
gslb_service_enabled:
|
||||
description: Whether the GSLB service is enabled or not
|
||||
description: Whether the GSLB service is enabled or not.
|
||||
returned: success
|
||||
type: bool
|
||||
sample: true
|
||||
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
|
||||
type: bool
|
||||
sample: true
|
||||
'''
|
||||
|
||||
|
||||
from ansible.module_utils.cloudstack import *
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.cloudstack import (
|
||||
AnsibleCloudStack,
|
||||
CloudStackException,
|
||||
cs_argument_spec,
|
||||
cs_required_together
|
||||
)
|
||||
|
||||
|
||||
class AnsibleCloudStackRegion(AnsibleCloudStack):
|
||||
|
||||
|
@ -175,8 +181,8 @@ def main():
|
|||
argument_spec = cs_argument_spec()
|
||||
argument_spec.update(dict(
|
||||
id=dict(required=True, type='int'),
|
||||
name=dict(default=None),
|
||||
endpoint=dict(default=None),
|
||||
name=dict(),
|
||||
endpoint=dict(),
|
||||
state=dict(choices=['present', 'absent'], default='present'),
|
||||
))
|
||||
|
||||
|
@ -205,5 +211,6 @@ def main():
|
|||
|
||||
module.exit_json(**result)
|
||||
|
||||
|
||||
if __name__ == '__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_portforward.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_securitygroup.py
|
||||
lib/ansible/modules/cloud/cloudstack/cs_securitygroup_rule.py
|
||||
|
|
Loading…
Reference in a new issue