Skip to content

Commit 7c8bd7c

Browse files
committed
Update environment
1 parent 3af1845 commit 7c8bd7c

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/pull_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if: github.actor != 'dependabot[bot]'
1515
runs-on: ubuntu-latest
1616
env:
17-
COMMON__ENVIRONMENT: Local # This should be Development, but this demo doesn't have a Key Vault
17+
COMMON__ENVIRONMENT: Development
1818
steps:
1919
- name: Checkout repository
2020
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

api/src/api/application_settings.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
from pathlib import Path
22

3-
from azure.identity import DefaultAzureCredential
43
from pydantic import SecretStr
54
from pydantic.alias_generators import to_pascal
65
from pydantic_settings import (
7-
AzureKeyVaultSettingsSource,
86
BaseSettings,
97
DotEnvSettingsSource,
108
EnvSettingsSource,
@@ -49,11 +47,12 @@ def settings_customise_sources(
4947
settings = (env, dotenv)
5048

5149
if ApplicationEnvironment.get_current() != ApplicationEnvironment.LOCAL:
52-
azure_key_vault = AzureKeyVaultSettingsSource(
53-
settings_cls,
54-
dotenv()["AzureKeyVaultUrl"],
55-
DefaultAzureCredential(),
56-
)
57-
settings += (azure_key_vault,)
50+
pass
51+
# azure_key_vault = AzureKeyVaultSettingsSource( # noqa: ERA001, RUF100
52+
# settings_cls,
53+
# dotenv()["AzureKeyVaultUrl"],# noqa: ERA001, RUF100
54+
# DefaultAzureCredential(),# noqa: ERA001, RUF100
55+
# )# noqa: ERA001, RUF100
56+
# settings += (azure_key_vault,)# noqa: ERA001, RUF100
5857

5958
return settings

0 commit comments

Comments
 (0)