Skip to content

Commit

Permalink
CTX-6271: Save nodeId when fetching nodeId from nodeName.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Tintor committed Aug 7, 2024
1 parent 316fa6d commit 7648d69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions coretex/cli/modules/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def clean() -> None:


def fetchNodeId(name: str) -> int:
config = loadConfig()
params = {
"machine_name": f"={name}"
}
Expand All @@ -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


Expand Down

0 comments on commit 7648d69

Please sign in to comment.