some more cleanups
This commit is contained in:
parent
88d4964b9c
commit
3df720d37f
|
@ -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
|
||||||
|
|
4
pvcd.py
4
pvcd.py
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue