From 52c2bc0baf69c31ef54617e391e5badf85db53e9 Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Thu, 10 Oct 2013 17:47:33 +0530 Subject: [PATCH] pep8: fix regression from 10938612cc9f518e254f8756581548eeb52913b4 Signed-off-by: Prasanna Santhanam --- tools/marvin/marvin/cloudstackConnection.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/marvin/marvin/cloudstackConnection.py b/tools/marvin/marvin/cloudstackConnection.py index c5a4c67fa5a..686c533b86a 100644 --- a/tools/marvin/marvin/cloudstackConnection.py +++ b/tools/marvin/marvin/cloudstackConnection.py @@ -32,8 +32,10 @@ from requests import RequestException class cloudConnection(object): + """ Connections to make API calls to the cloudstack management server """ + def __init__(self, mgtSvr, port=8096, user=None, passwd=None, apiKey=None, securityKey=None, asyncTimeout=3600, logging=None, scheme='http', @@ -144,9 +146,11 @@ class cloudConnection(object): try: if method == 'POST': - response = requests.post(self.baseurl, params=payload, verify=False) + response = requests.post( + self.baseurl, params=payload, verify=False) else: - response = requests.get(self.baseurl, params=payload, verify=False) + response = requests.get( + self.baseurl, params=payload, verify=False) except ConnectionError, c: self.logging.debug("Connection refused. Reason: %s : %s" % (self.baseurl, c))