mirror of
https://gitlab.com/manzerbredes/clusterman.git
synced 2025-04-05 11:36:25 +02:00
Change node listreturn code
This commit is contained in:
parent
901267c54e
commit
7ea029cad6
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ def ls(group=None):
|
||||||
nodes=utils.get_node_list()
|
nodes=utils.get_node_list()
|
||||||
if len(nodes)<=0:
|
if len(nodes)<=0:
|
||||||
print("Please perform a scan before")
|
print("Please perform a scan before")
|
||||||
exit(0)
|
exit(2)
|
||||||
# Print nodes
|
# Print nodes
|
||||||
if group is not None:
|
if group is not None:
|
||||||
for node in utils.get_node_in_group(group):
|
for node in utils.get_node_in_group(group):
|
||||||
|
|
Loading…
Add table
Reference in a new issue