File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 22import json
33from time_tracker_api .security import current_user_email
44from azure .appconfiguration import AzureAppConfigurationClient
5- from utils .check_variables import check_variables_are_defined
5+ from utils .environment_variables import check_variables_are_defined
6+
67
78class FeatureToggleConfig :
89 check_variables_are_defined (['AZURE_APP_CONFIGURATION_CONNECTION_STRING' ])
Original file line number Diff line number Diff line change 33import requests
44import json
55from typing import List
6- from utils .check_variables import check_variables_are_defined
6+ from utils .environment_variables import check_variables_are_defined
77
88
99class MSConfig :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import os
2+
3+
4+ def check_variables_are_defined (variables ):
5+ for var in variables :
6+ if var not in os .environ :
7+ raise EnvironmentError (
8+ "{} is not defined in the environment" .format (var )
9+ )
You can’t perform that action at this time.
0 commit comments