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:
Adolfo Gómez 2013-09-17 12:47:15 +00:00
parent f220cf3651
commit 650c13067d

View File

@ -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: