Skip to content

Commit

Permalink
perhaps authorized_key is absent for activation account
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Dec 18, 2023
1 parent f74ce19 commit 86336c2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions utils/config-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,9 @@ def expose_secret_key(account_name):
as is the case in Octez client's "secret_keys" file.
"""
if MY_POD_TYPE == "activating":
return account_name in [
NETWORK_CONFIG["activation_account_name"],
NETWORK_CONFIG["activation_account_authorized_key"]
]
if "activation_account_authorized_key" in NETWORK_CONFIG:
return account_name == NETWORK_CONFIG["activation_account_authorized_key"]
return account_name == NETWORK_CONFIG["activation_account_name"]

if MY_POD_TYPE == "signing":
return account_name in MY_POD_CONFIG.get("accounts")
Expand Down

0 comments on commit 86336c2

Please sign in to comment.