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:
248
248
# Load default values from environment
249
249
if "DD_SITE" in os.environ:
250
250
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") :
252
252
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["appKeyAuth"] :
254
254
self.api_key["appKeyAuth"] = os.environ["DD_APP_KEY"]
255
255
256
256
def __deepcopy__(self, memo):
Original file line number Diff line number Diff line change @@ -287,9 +287,9 @@ def __init__(
287
287
# Load default values from environment
288
288
if "DD_SITE" in os .environ :
289
289
self .server_variables ["site" ] = os .environ ["DD_SITE" ]
290
- if "DD_API_KEY" in os .environ :
290
+ if "DD_API_KEY" in os .environ and not self . api_key . get ( "apiKeyAuth" ) :
291
291
self .api_key ["apiKeyAuth" ] = os .environ ["DD_API_KEY" ]
292
- if "DD_APP_KEY" in os .environ :
292
+ if "DD_APP_KEY" in os .environ and not self . api_key [ "appKeyAuth" ] :
293
293
self .api_key ["appKeyAuth" ] = os .environ ["DD_APP_KEY" ]
294
294
295
295
def __deepcopy__ (self , memo ):
You can’t perform that action at this time.
0 commit comments