Skip to content

Commit 7ce26bf

Browse files
committed
removed few commented lines from node_ordering python file
1 parent 7078f0e commit 7ce26bf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

playbooks/roles/rack-aware/files/node_ordering_by_rack.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,14 @@ def write_ordered_rankfile(ordered_hosts=[],hostfile=None):
5151
from pssh.clients import ParallelSSHClient
5252
client = ParallelSSHClient(hosts)
5353
output = client.run_command('curl http://169.254.169.254/opc/v1/host/')
54-
#print(output)
5554
for host_out in output:
5655
j = json.loads(bytearray(''.join(list(host_out.stdout)).encode()))
57-
#print(j)
5856
if j['rackId'] in r:
5957
r[j['rackId']].append( host_out.host )
6058
else:
6159
r[j['rackId']] = [ host_out.host ]
6260
hostname_output = client.run_command('/usr/bin/hostname')
63-
#print(hostname_output)
6461
for host_out in hostname_output:
65-
#j = bytearray(''.join(list(host_out.stdout)).encode())
6662
j = bytearray(''.join(list(host_out.stdout)).encode())
6763
friendly_name_to_system_hostname[host_out.host] = j.decode(encoding='ascii')
6864
#print(j.decode(encoding='ascii')+" "+host_out.host)

0 commit comments

Comments
 (0)