app: do not wrap libvirt_conn.close() in auto-reconnect wrapper

close() function purpose is to close the connection...
This commit is contained in:
Marek Marczykowski-Górecki 2017-07-26 02:57:38 +02:00
parent 074c705f77
commit d57120d809
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -120,6 +120,8 @@ class VirConnectWrapper(object):
attr = getattr(self._conn, attrname)
if not isinstance(attr, collections.Callable):
return attr
if attrname == 'close':
return attr
@functools.wraps(attr)
def wrapper(*args, **kwargs):