forked from shaba/openuds
Removed caching of API connections to oVirt. Now it's opened/closed every time needed because this has given some problems.
Anyway, has to implement in a near future using REST a own api, because oVirt API does not work too "fine"
This commit is contained in:
parent
f220cf3651
commit
650c13067d
@ -51,8 +51,8 @@ class Client(object):
|
|||||||
'''
|
'''
|
||||||
global cached_api, cached_api_key
|
global cached_api, cached_api_key
|
||||||
aKey = self.__getKey('o-host')
|
aKey = self.__getKey('o-host')
|
||||||
if cached_api_key == aKey:
|
#if cached_api_key == aKey:
|
||||||
return cached_api
|
# return cached_api
|
||||||
|
|
||||||
if cached_api is not None:
|
if cached_api is not None:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user