mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Pep8 fixes for digital_ocean_*
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
9c5b55232c
commit
2425143cf2
5 changed files with 53 additions and 53 deletions
|
@ -99,6 +99,7 @@ from ansible.module_utils.basic import AnsibleModule
|
|||
|
||||
|
||||
class JsonfyMixIn(object):
|
||||
|
||||
def to_json(self):
|
||||
return self.__dict__
|
||||
|
||||
|
@ -226,14 +227,14 @@ def core(module):
|
|||
|
||||
def main():
|
||||
module = AnsibleModule(
|
||||
argument_spec = dict(
|
||||
state = dict(choices=['present', 'absent'], default='present'),
|
||||
api_token = dict(aliases=['API_TOKEN'], no_log=True),
|
||||
name = dict(type='str'),
|
||||
id = dict(aliases=['droplet_id'], type='int'),
|
||||
ip = dict(type='str'),
|
||||
argument_spec=dict(
|
||||
state=dict(choices=['present', 'absent'], default='present'),
|
||||
api_token=dict(aliases=['API_TOKEN'], no_log=True),
|
||||
name=dict(type='str'),
|
||||
id=dict(aliases=['droplet_id'], type='int'),
|
||||
ip=dict(type='str'),
|
||||
),
|
||||
required_one_of = (
|
||||
required_one_of=(
|
||||
['id', 'name'],
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue