mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue