2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

Actually remove group on split

This commit is contained in:
Jarrod Johnson 2021-09-13 14:09:07 -04:00
parent 38669ddbbc
commit 5276618b73

View File

@ -44,7 +44,7 @@ client.check_globbing(noderange)
session = client.Command()
exitcode = 0
for group in noderange.split(','):
for r in session.delete('/nodegroups/{0}'.format(noderange)):
for r in session.delete('/nodegroups/{0}'.format(group)):
if 'error' in r:
sys.stderr.write(r['error'] + '\n')
exitcode |= 1