From 643cef988e616b12391e01f380ef772f3911e466 Mon Sep 17 00:00:00 2001 From: pascalheraud Date: Wed, 9 Dec 2015 21:42:29 +0100 Subject: [PATCH] Fixed bad location and import Fixed bad type of default value for timeout --- .../modules/extras/cloud/ovh/ovh_ip_loadbalancing_backend.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/ovh/ovh_ip_loadbalancing_backend.py b/lib/ansible/modules/extras/cloud/ovh/ovh_ip_loadbalancing_backend.py index e3b80617b7..1d38909f61 100644 --- a/lib/ansible/modules/extras/cloud/ovh/ovh_ip_loadbalancing_backend.py +++ b/lib/ansible/modules/extras/cloud/ovh/ovh_ip_loadbalancing_backend.py @@ -4,14 +4,13 @@ import sys try: import ovh import ovh.exceptions + from ovh.exceptions import APIError HAS_OVH = True except ImportError: HAS_OVH = False # import module snippets from ansible.module_utils.basic import * -# and APIError from ovh api -from ovh.exceptions import APIError DOCUMENTATION = ''' --- @@ -123,7 +122,7 @@ def main(): argument_spec=dict( name=dict(required=True), backend=dict(required=True), - weight=dict(default='8', type='int'), + weight=dict(default=8, type='int'), probe=dict(default='none', choices=['none', 'http', 'icmp', 'oco']), state=dict(default='present', choices=['present', 'absent']),