diff --git a/confluent_client/bin/nodegroupremove b/confluent_client/bin/nodegroupremove index c0861825..a64c7d60 100755 --- a/confluent_client/bin/nodegroupremove +++ b/confluent_client/bin/nodegroupremove @@ -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