in backend-printing/helper/key_vault.py [0:0]
def set_kv_secrets(self, secret_key, secret_value):
"""Set the secret key and value to the key vault.
Args:
secret_key (string): Key name
secret_value (string): value of the key
Raises:
Exception: Error occurred setting the secret
Returns:
boolean: True if the secret is successfully set
"""
try:
self.key_vault_client.set_secret(secret_key, secret_value)
return True
except Exception as e:
raise Exception(f"Error occurred setting SAP config: {e}")