1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixed bad location and import Fixed bad type of default value for timeout

This commit is contained in:
pascalheraud 2015-12-09 21:42:29 +01:00 committed by Matt Clay
parent 88c5d84d72
commit 643cef988e

View file

@ -4,14 +4,13 @@ import sys
try: try:
import ovh import ovh
import ovh.exceptions import ovh.exceptions
from ovh.exceptions import APIError
HAS_OVH = True HAS_OVH = True
except ImportError: except ImportError:
HAS_OVH = False HAS_OVH = False
# import module snippets # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
# and APIError from ovh api
from ovh.exceptions import APIError
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
@ -123,7 +122,7 @@ def main():
argument_spec=dict( argument_spec=dict(
name=dict(required=True), name=dict(required=True),
backend=dict(required=True), backend=dict(required=True),
weight=dict(default='8', type='int'), weight=dict(default=8, type='int'),
probe=dict(default='none', probe=dict(default='none',
choices=['none', 'http', 'icmp', 'oco']), choices=['none', 'http', 'icmp', 'oco']),
state=dict(default='present', choices=['present', 'absent']), state=dict(default='present', choices=['present', 'absent']),