2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-10-20 06:35:33 +00:00

Do not print an empty line with empty nodelist

This commit is contained in:
Jarrod Johnson
2026-10-12 08:57:47 -04:00
parent eb6c026ac8
commit 6d87d3e7a1
+2 -1
View File
@@ -69,7 +69,8 @@ async def main():
else:
elem=(res['item']['href'].replace('/', ''))
list.append(elem)
print(options.delim.join(list))
if list:
print(options.delim.join(list))
sys.exit(exitcode)