From a4d3e7134230b02387a8840660eb3de17ff0b88f Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 20 Nov 2023 18:57:52 +0100 Subject: Minor changes --- clusterman/commands/frontend.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clusterman/commands/frontend.py') diff --git a/clusterman/commands/frontend.py b/clusterman/commands/frontend.py index 4d7ecc4..6dee9bc 100644 --- a/clusterman/commands/frontend.py +++ b/clusterman/commands/frontend.py @@ -1,10 +1,10 @@ import os, json, re from datetime import datetime from clusterman.config import CONF -import clusterman.commands.node as node +import clusterman.utils as utils def info(): - nodes=node.get_node_list() + nodes=utils.get_node_list() cache=None if os.path.exists(CONF.CACHE_FILE): with open(CONF.CACHE_FILE) as f: @@ -18,7 +18,7 @@ def info(): if len(CONF["cluster"]["groups"]) > 0: content=list() for group in CONF["cluster"]["groups"].keys(): - content.append("{}({})".format(group,len(node.get_node_in_group(group)))) + content.append("{}({})".format(group,len(utils.get_node_in_group(group)))) print(", ".join(content)) else: print("NA") -- cgit v1.2.3