From 76a431a500549b6cb198ccec1ab92631789ecc0e Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 6 Jun 2018 15:16:39 -0400 Subject: [PATCH] Close the libvirt connection --- NodeInstance.py | 3 +++ 1 file changed, 3 insertions(+) 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))