File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
.generator/src/generator/templates Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -248,9 +248,9 @@ class Configuration:
248248 # Load default values from environment
249249 if "DD_SITE" in os.environ:
250250 self.server_variables["site"] = os.environ["DD_SITE"]
251- if "DD_API_KEY" in os.environ:
251+ if "DD_API_KEY" in os.environ and not self.api_key.get("apiKeyAuth") :
252252 self.api_key["apiKeyAuth"] = os.environ["DD_API_KEY"]
253- if "DD_APP_KEY" in os.environ:
253+ if "DD_APP_KEY" in os.environ and not self.api_key.get("appKeyAuth") :
254254 self.api_key["appKeyAuth"] = os.environ["DD_APP_KEY"]
255255
256256 def __deepcopy__(self, memo):
Original file line number Diff line number Diff line change @@ -284,9 +284,9 @@ def __init__(
284284 # Load default values from environment
285285 if "DD_SITE" in os .environ :
286286 self .server_variables ["site" ] = os .environ ["DD_SITE" ]
287- if "DD_API_KEY" in os .environ :
287+ if "DD_API_KEY" in os .environ and not self . api_key . get ( "apiKeyAuth" ) :
288288 self .api_key ["apiKeyAuth" ] = os .environ ["DD_API_KEY" ]
289- if "DD_APP_KEY" in os .environ :
289+ if "DD_APP_KEY" in os .environ and not self . api_key . get ( "appKeyAuth" ) :
290290 self .api_key ["appKeyAuth" ] = os .environ ["DD_APP_KEY" ]
291291
292292 def __deepcopy__ (self , memo ):
You can’t perform that action at this time.
0 commit comments