diff --git a/NodeInstance.py b/NodeInstance.py index 48391bab..d1b0cd24 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -187,6 +187,9 @@ class NodeInstance(): except: return + # Close the Libvirt connection + conn.close() + # Display node information to the terminal print('>>> {} - {} keepalive'.format(time.strftime('%d/%m/%Y %H:%M:%S'), self.name)) print(' CPUs: {} | Free memory: {} | Load: {}'.format(self.cpucount, self.memfree, self.cpuload))