fix output of value

This commit is contained in:
Wolfgang Hottgenroth 2022-09-16 13:00:23 +02:00
parent 2d455a7b49
commit 7cbd2b82f2
Signed by: wn
GPG Key ID: 836E9E1192A6B132

View File

@ -11,7 +11,7 @@ def getSecret(keyVaultName, secretName):
credential = DefaultAzureCredential()
client = SecretClient(vault_url=KVUri, credential=credential)
retrieved_secret = client.get_secret(secretName)
return retrieved_secret
return retrieved_secret.value
except AzureError as e:
raise LocalException(f"AzureError: <{e.__class__.__name__}> <{e}>")