Skip to content

Commit

Permalink
CTX-6271: Fix for GET "service" endpoint returning str for id instead…
Browse files Browse the repository at this point in the history
… of int (using service/directory endpoint).
  • Loading branch information
Bogdan Tintor committed Aug 7, 2024
1 parent b270b90 commit 5b27fc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coretex/cli/modules/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ def clean() -> None:
def fetchNodeId(name: str) -> int:
config = loadConfig()
params = {
"machine_name": f"={name}"
"name": f"={name}"
}

response = networkManager.get("service", params)
response = networkManager.get("service/directory", params)
if response.hasFailed():
raise NetworkRequestError(response, "Failed to fetch node id.")

Expand All @@ -149,7 +149,7 @@ def fetchNodeId(name: str) -> int:
return nodeId


def deactivateNode(id: Optional[int]) -> None:
def deactivateNode(id: int) -> None:
params = {
"id": id
}
Expand Down

0 comments on commit 5b27fc5

Please sign in to comment.