connection: Simplify keepAlive error checking

This checking is overly involved, keepAlive is not an essential
feature, so just log an error if it fails

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-01-27 05:37:49 -05:00
parent f023b9f8c9
commit cf76c1517c
1 changed files with 0 additions and 4 deletions

View File

@ -169,10 +169,6 @@ class VirtinstConnection(object):
self._uri = self._libvirtconn.getURI()
self._uriobj = URI(self._uri)
def set_keep_alive(self, interval, count):
if hasattr(self._libvirtconn, "setKeepAlive"):
self._libvirtconn.setKeepAlive(interval, count)
####################
# Polling routines #