Clean up server responses
This commit is contained in:
parent
81df9ef443
commit
98df6c4a98
1 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ def send_commands():
|
||||||
with Client(servers[server]['address'], int(servers[server]['port']), passwd=servers[server]['password']) as client:
|
with Client(servers[server]['address'], int(servers[server]['port']), passwd=servers[server]['password']) as client:
|
||||||
response = client.run(command)
|
response = client.run(command)
|
||||||
|
|
||||||
print(servers[server]['name']+': '+response)
|
print(servers[server]['name']+': '+response+'\n')
|
||||||
else:
|
else:
|
||||||
proceed = False
|
proceed = False
|
||||||
print('No command was entered. Exiting.\n')
|
print('No command was entered. Exiting.\n')
|
||||||
|
@ -98,7 +98,7 @@ def send_commands():
|
||||||
with Client(x['address'], int(x['port']), passwd=x['password']) as client:
|
with Client(x['address'], int(x['port']), passwd=x['password']) as client:
|
||||||
response = client.run(command)
|
response = client.run(command)
|
||||||
|
|
||||||
print(x['name']+': '+response)
|
print(x['name']+': '+response+'\n')
|
||||||
else:
|
else:
|
||||||
proceed = False
|
proceed = False
|
||||||
print('No command was entered. Exiting.\n')
|
print('No command was entered. Exiting.\n')
|
||||||
|
|
Loading…
Reference in a new issue