From 1ecd31e6f66d02e7635074455f52718c9e30f8ce Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 11 Jun 2018 01:58:40 -0400 Subject: [PATCH] Move ordering --- pvcd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pvcd.py b/pvcd.py index ef6384cb..7568adfe 100755 --- a/pvcd.py +++ b/pvcd.py @@ -123,6 +123,9 @@ def cleanup(): atexit.register(cleanup) +print('{0}Node hostname:{1} {2}'.format(ansiiprint.bold(), ansiiprint.end(), myhostname)) +print('{0}IPMI hostname:{1} {2}'.format(ansiiprint.bold(), ansiiprint.end(), config['ipmi_hostname'])) + # Check if our node exists in Zookeeper, and create it if not if zk.exists('/nodes/{}'.format(myhostname)): print("Node is " + ansiiprint.green() + "present" + ansiiprint.end() + " in Zookeeper") @@ -144,9 +147,6 @@ else: zk.create('/nodes/{}/ipmiusername'.format(myhostname), config['ipmi_username'].encode('ascii')) zk.create('/nodes/{}/ipmipassword'.format(myhostname), config['ipmi_password'].encode('ascii')) -print('{0}Node hostname:{1} {2}'.format(ansiiprint.bold(), ansiiprint.end(), myhostname)) -print('{0}IPMI hostname:{1} {2}'.format(ansiiprint.bold(), ansiiprint.end(), config['ipmi_hostname'])) - t_node = dict() s_domain = dict() node_list = []