summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <loic.guegan@mailbox.org>2023-10-26 12:37:40 +0200
committerLoic Guegan <loic.guegan@mailbox.org>2023-10-26 12:37:40 +0200
commit21a83cd9736a742645179d899488bd9db62e80c9 (patch)
treed39b596e501e89a89477d1e6a8b50fe1f8988950
parentb2835c72a33fd1baa20fa137cf4c1953ca28e149 (diff)
Minor changes
-rw-r--r--clusterman/commands/node.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/clusterman/commands/node.py b/clusterman/commands/node.py
index 04ede32..b7dca60 100644
--- a/clusterman/commands/node.py
+++ b/clusterman/commands/node.py
@@ -36,6 +36,9 @@ def check(timeout=0.1):
if os.path.exists(nodes_path):
with open(nodes_path) as f:
nodes=json.load(f)
+ else:
+ print("Please perform a scan before")
+ exit(0)
if not nodes == None:
fail=False
for ip in nodes: