Skip to content

Commit 511a347

Browse files
author
DaanVonk
committed
-
1 parent 5d2853f commit 511a347

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

klad.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import os
2-
from typing import Union
32
from azure.keyvault.secrets import SecretClient
43
from azure.identity import ManagedIdentityCredential, InteractiveBrowserCredential
54

6-
def get_credentials() -> Union[ManagedIdentityCredential, InteractiveBrowserCredential]:
5+
def get_credentials():
76
# Check if the code is running in the cloud (Azure App Service, Azure Functions, etc.)
87
if "WEBSITE_SITE_NAME" in os.environ:
98
credential = ManagedIdentityCredential()

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ Flask==2.2.2
22
gunicorn
33
Werkzeug==2.2.2
44
azure-identity
5-
azure-keyvault
5+
azure-identity

0 commit comments

Comments
 (0)