Results
No results found.
This function will get the secret value by a key. If the key does not exist, SDK will return the default_value
secret_value = locker.get("REDIS_CONNECTION", default_value="TheDefaultValue")
print(secret_value)
You could get a secret value by a secret key and specific environment name by the environment_name
parameter.
If the key does not exist, SDK will return the default_value
secret_value = locker.get_secret(
"REDIS_CONNECTION",
environment_name="staging",
default_value="TheDefaultValue"
)
print(secret_value)