2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Amend the prompt for single node prompting

Remove the trailing slash
This commit is contained in:
Jarrod Johnson 2019-10-23 14:38:45 -04:00
parent 620263db3e
commit a43361bb98

View File

@ -258,6 +258,7 @@ class Command(object):
if nsize == 1:
nodename = list(self.read(
'/noderange/{0}/nodes/'.format(noderange)))[0].get('item', {}).get('href', None)
nodename = nodename[:-1]
p = input('Command is about to affect node {0}, continue (y/n)? '.format(nodename))
else:
p = input('Command is about to affect {0} nodes, continue (y/n)? '.format(nsize))