some more cleanups

This commit is contained in:
Joshua Boniface 2018-06-11 01:58:06 -04:00
parent 88d4964b9c
commit 3df720d37f
2 changed files with 2 additions and 4 deletions

View File

@ -147,8 +147,6 @@ class NodeInstance():
# Connect to libvirt # Connect to libvirt
libvirt_name = "qemu:///system" libvirt_name = "qemu:///system"
conn = libvirt.open(libvirt_name) conn = libvirt.open(libvirt_name)
print(conn.listDomainsID())
print(psutil.virtual_memory())
if conn == None: if conn == None:
ansiiprint.echo('Failed to open connection to "{}"'.format(libvirt_name), '', 'e') ansiiprint.echo('Failed to open connection to "{}"'.format(libvirt_name), '', 'e')
return return

View File

@ -144,8 +144,8 @@ else:
zk.create('/nodes/{}/ipmiusername'.format(myhostname), config['ipmi_username'].encode('ascii')) zk.create('/nodes/{}/ipmiusername'.format(myhostname), config['ipmi_username'].encode('ascii'))
zk.create('/nodes/{}/ipmipassword'.format(myhostname), config['ipmi_password'].encode('ascii')) zk.create('/nodes/{}/ipmipassword'.format(myhostname), config['ipmi_password'].encode('ascii'))
print('Node hostname: {}'.format(myhostname)) print('{0}Node hostname:{1} {2}'.format(ansiiprint.bold(), ansiiprint.end(), myhostname))
print('IPMI hostname: {}'.format(config['ipmi_hostname'])) print('{0}IPMI hostname:{1} {2}'.format(ansiiprint.bold(), ansiiprint.end(), config['ipmi_hostname']))
t_node = dict() t_node = dict()
s_domain = dict() s_domain = dict()