From 7648d693f5c94e836610bfa120a4773ef53e11df Mon Sep 17 00:00:00 2001 From: Bogdan Tintor Date: Wed, 7 Aug 2024 11:55:09 +0200 Subject: [PATCH] CTX-6271: Save nodeId when fetching nodeId from nodeName. --- coretex/cli/modules/node.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coretex/cli/modules/node.py b/coretex/cli/modules/node.py index 2c260968..79961506 100644 --- a/coretex/cli/modules/node.py +++ b/coretex/cli/modules/node.py @@ -118,6 +118,7 @@ def clean() -> None: def fetchNodeId(name: str) -> int: + config = loadConfig() params = { "machine_name": f"={name}" } @@ -143,6 +144,8 @@ def fetchNodeId(name: str) -> int: if not isinstance(nodeId, int): raise TypeError(f"Invalid \"nodeId\" type {type(nodeId)}. Expected: \"int\"") + config["nodeId"] = nodeId + saveConfig(config) return nodeId