Skip to content

Commit

Permalink
convert getBackendEnvironemts return type to list
Browse files Browse the repository at this point in the history
  • Loading branch information
Roxana Meixner committed Feb 18, 2023
1 parent 521fe5e commit c67e14e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/UbirchWrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, key_store: ubirch.KeyStore, uuid: UUID, env: str, key_type: s

# check env
if env not in ubirch.getBackendEnvironemts():
raise ValueError("Invalid ubirch env! Must be one of {}".format(list(ubirch.getBackendEnvironemts())))
raise ValueError("Invalid ubirch env! Must be one of {}".format(ubirch.getBackendEnvironemts()))

# check if the keystore has the same key_type for the device UUID and the backend response
if key_type == ECDSA_TYPE:
Expand Down
2 changes: 1 addition & 1 deletion ubirch/ubirch_backend_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def getBackendEnvironemts() -> list:
Getter to list the available backend environments.
@return available Environments
"""
return KEYS.keys()
return list(KEYS.keys())

def getBackendUuid(env: str = "demo") -> UUID:
"""!
Expand Down

0 comments on commit c67e14e

Please sign in to comment.