From d957ab9552cd84cabbc841b84834d0240483475d Mon Sep 17 00:00:00 2001
From: David Moreau Simard <moi@dmsimard.com>
Date: Wed, 30 Sep 2020 10:59:48 -0400
Subject: [PATCH] http client: ensure timeout is an int

It could otherwise lead to errors like:
    Timeout value connect was 15, but it must be an int, float or None

Change-Id: I7b426c88a09f27ca2d645fd05227c2cf106d8d1e
---
 ara/clients/http.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ara/clients/http.py b/ara/clients/http.py
index 10d8bb2f..e7d942de 100644
--- a/ara/clients/http.py
+++ b/ara/clients/http.py
@@ -36,7 +36,7 @@ class HttpClient(object):
 
         self.endpoint = endpoint.rstrip("/")
         self.auth = auth
-        self.timeout = timeout
+        self.timeout = int(timeout)
         self.verify = verify
         self.headers = {
             "User-Agent": "ara-http-client_%s" % CLIENT_VERSION,
@@ -80,7 +80,7 @@ class AraHttpClient(object):
         self.log = logging.getLogger(__name__)
         self.endpoint = endpoint
         self.auth = auth
-        self.timeout = timeout
+        self.timeout = int(timeout)
         self.verify = verify
         self.client = HttpClient(endpoint=self.endpoint, timeout=self.timeout, auth=self.auth, verify=self.verify)
         active_client._instance = weakref.ref(self)