Skip to content

Commit

Permalink
fix other code typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Oct 23, 2023
1 parent 30b1b44 commit 3fb57c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/config-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def expose_secret_key(account_name):
if MY_POD_TYPE == "node":
if MY_POD_CONFIG.get("bake_using_account", "") == account_name:
return True
if account_name in MY_POD_CONFIG.get("authorized_keys", {}):
if account_name in MY_POD_CONFIG.get("authorized_keys", []):
return True
return account_name in MY_POD_CONFIG.get("bake_using_accounts", {})

Expand Down Expand Up @@ -462,7 +462,7 @@ def import_keys(all_accounts):
account_values["pkh"] = pkh_b58

if MY_POD_TYPE == "signing" and \
account_name in MY_POD_CONFIG.get("authorized_keys"):
account_name in MY_POD_CONFIG.get("authorized_keys", []):
print(f" Appending authorized key: {pk_b58}")
authorized_keys.append({"name": account_name, "value": pk_b58})

Expand Down

0 comments on commit 3fb57c3

Please sign in to comment.