mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
pep8: fix regression from 10938612cc9f518e254f8756581548eeb52913b4
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
bb7493775c
commit
52c2bc0baf
@ -32,8 +32,10 @@ from requests import RequestException
|
|||||||
|
|
||||||
|
|
||||||
class cloudConnection(object):
|
class cloudConnection(object):
|
||||||
|
|
||||||
""" Connections to make API calls to the cloudstack management server
|
""" Connections to make API calls to the cloudstack management server
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, mgtSvr, port=8096, user=None, passwd=None,
|
def __init__(self, mgtSvr, port=8096, user=None, passwd=None,
|
||||||
apiKey=None, securityKey=None,
|
apiKey=None, securityKey=None,
|
||||||
asyncTimeout=3600, logging=None, scheme='http',
|
asyncTimeout=3600, logging=None, scheme='http',
|
||||||
@ -144,9 +146,11 @@ class cloudConnection(object):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
if method == 'POST':
|
if method == 'POST':
|
||||||
response = requests.post(self.baseurl, params=payload, verify=False)
|
response = requests.post(
|
||||||
|
self.baseurl, params=payload, verify=False)
|
||||||
else:
|
else:
|
||||||
response = requests.get(self.baseurl, params=payload, verify=False)
|
response = requests.get(
|
||||||
|
self.baseurl, params=payload, verify=False)
|
||||||
except ConnectionError, c:
|
except ConnectionError, c:
|
||||||
self.logging.debug("Connection refused. Reason: %s : %s" %
|
self.logging.debug("Connection refused. Reason: %s : %s" %
|
||||||
(self.baseurl, c))
|
(self.baseurl, c))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user