Change node listreturn code

This commit is contained in:
Loïc Guégan 2024-02-07 16:24:59 +01:00
parent 901267c54e
commit 7ea029cad6

View file

@ -7,7 +7,7 @@ def ls(group=None):
nodes=utils.get_node_list()
if len(nodes)<=0:
print("Please perform a scan before")
exit(0)
exit(2)
# Print nodes
if group is not None:
for node in utils.get_node_in_group(group):