Skip to content

Commit

Permalink
Merge pull request #21 from shreypandey/main
Browse files Browse the repository at this point in the history
Updated logic for not including existing config vars
  • Loading branch information
sameersegal authored Sep 9, 2024
2 parents 7f8d24b + e5a6ba6 commit a2b26d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nl2dsl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ def add_azure_keys(self, dsl):
"FAST_MODEL",
"SLOW_MODEL",
]
existing_keys = set(config_var["name"] for config_var in dsl["config_vars"])
for key in AZURE_CREDENTIALS:
if key not in dsl["config_vars"]:
if key not in existing_keys:
dsl["config_vars"].append({"name": key, "value": ""})
return dsl

Expand Down

0 comments on commit a2b26d7

Please sign in to comment.