From 4b8b1a1b52fb692d19104ed5105a96be3c8fb5b4 Mon Sep 17 00:00:00 2001 From: Yorick Downe Date: Sun, 13 Aug 2023 10:34:04 +0000 Subject: [PATCH] ethd keys list clearer output when using web3signer --- vc-utils/keymanager.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/vc-utils/keymanager.sh b/vc-utils/keymanager.sh index 408fc409..f79f0a05 100755 --- a/vc-utils/keymanager.sh +++ b/vc-utils/keymanager.sh @@ -303,6 +303,8 @@ validator-list() { __token=NIL __vc_api_container=${__api_container} __api_container=web3signer + __vc_service=${__service} + __service=web3signer __vc_api_port=${__api_port} __api_port=9000 __vc_api_tls=${__api_tls} @@ -312,22 +314,23 @@ validator-list() { fi __validator-list-call if [ "$(echo "$__result" | jq '.data | length')" -eq 0 ]; then - echo "No keys loaded" + echo "No keys loaded into ${__service}" else - echo "Validator public keys" + echo "Validator public keys loaded into ${__service}" echo "$__result" | jq -r '.data[].validating_pubkey' fi if [ "${WEB3SIGNER}" = "true" ]; then get-token __api_path=eth/v1/remotekeys __api_container=${__vc_api_container} + __service=${__vc_service} __api_port=${__vc_api_port} __api_tls=${__vc_api_tls} __validator-list-call if [ "$(echo "$__result" | jq '.data | length')" -eq 0 ]; then - echo "No keys registered" + echo "No remote keys registered with ${__service}" else - echo "Keys registered" + echo "Remote keys registered with ${__service}" echo "$__result" | jq -rc '.data[] | [.pubkey, .url] | join(" ")' fi fi