Close the libvirt connection
This commit is contained in:
parent
0794cc854c
commit
76a431a500
|
@ -187,6 +187,9 @@ class NodeInstance():
|
||||||
except:
|
except:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# Close the Libvirt connection
|
||||||
|
conn.close()
|
||||||
|
|
||||||
# Display node information to the terminal
|
# Display node information to the terminal
|
||||||
print('>>> {} - {} keepalive'.format(time.strftime('%d/%m/%Y %H:%M:%S'), self.name))
|
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))
|
print(' CPUs: {} | Free memory: {} | Load: {}'.format(self.cpucount, self.memfree, self.cpuload))
|
||||||
|
|
Loading…
Reference in New Issue