From 144b7cd1d35926d8007f3300d232c011947c8493 Mon Sep 17 00:00:00 2001 From: badrogger Date: Mon, 20 Jul 2026 16:20:00 +0100 Subject: [PATCH] Fix skale health sgx command --- node_cli/configs/routes.py | 3 ++- node_cli/core/health.py | 3 ++- tests/routes_test.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/node_cli/configs/routes.py b/node_cli/configs/routes.py index 336fea3e..d26dccb9 100644 --- a/node_cli/configs/routes.py +++ b/node_cli/configs/routes.py @@ -36,7 +36,8 @@ 'set-domain-name', 'update-safe', ], - 'health': ['containers', 'schains', 'sgx'], + 'health': ['containers', 'schains'], + 'info': ['sgx'], 'schains': ['config', 'list', 'dkg-statuses', 'firewall-rules', 'repair', 'get'], 'ssl': ['status', 'upload'], 'wallet': ['info', 'send-eth'], diff --git a/node_cli/core/health.py b/node_cli/core/health.py index 72eb23ed..b4e7b0ee 100644 --- a/node_cli/core/health.py +++ b/node_cli/core/health.py @@ -26,6 +26,7 @@ BLUEPRINT_NAME = 'health' +INFO_BLUEPRINT_NAME = 'info' def get_containers(_all): @@ -53,7 +54,7 @@ def get_schains_checks(json_format: bool = False) -> None: def get_sgx_info(): - status, payload = get_request(blueprint=BLUEPRINT_NAME, method='sgx') + status, payload = get_request(blueprint=INFO_BLUEPRINT_NAME, method='sgx') if status == 'ok': data = payload table_data = [ diff --git a/tests/routes_test.py b/tests/routes_test.py index 39490ab3..9a346748 100644 --- a/tests/routes_test.py +++ b/tests/routes_test.py @@ -20,7 +20,7 @@ '/api/v1/node/update-safe', '/api/v1/health/containers', '/api/v1/health/schains', - '/api/v1/health/sgx', + '/api/v1/info/sgx', '/api/v1/schains/config', '/api/v1/schains/list', '/api/v1/schains/dkg-statuses',