Close the libvirt connection

This commit is contained in:
Joshua Boniface 2018-06-06 15:16:39 -04:00
parent 0794cc854c
commit 76a431a500
1 changed files with 3 additions and 0 deletions

View File

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