Skip to content

Commit

Permalink
fix: f-strings py11 compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemirci authored and Younday committed Aug 5, 2024
1 parent 5efed2f commit 0b58534
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ For detailed information on the CLI's usage, please refer to the [relevant secti

### Pre-requirements

- Python `3.12.*` (hint: pyenv)
- Python `3.11.*` (hint: pyenv)
- Poetry (`pip install poetry`)


Expand Down
4 changes: 2 additions & 2 deletions cli/cli/dynamic_configuration/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def next_question(deployment_dir, questions, question_obj, answer_ctx):
:return: The ID of the next question, the action to take, and a list of exposed environments.
"""
predefined_funcs_module = importlib.import_module("cli.dynamic_configuration.predefined_funcs")
next_condition_value = question_obj.next.value.replace(f"${answer_ctx["name"]}", str(answer_ctx["value"]))
next_condition_value = question_obj.next.value.replace(f"${answer_ctx['name']}", str(answer_ctx["value"]))
for condition in question_obj.next.conditions:
if condition.when != next_condition_value:
continue
Expand All @@ -159,7 +159,7 @@ def next_question(deployment_dir, questions, question_obj, answer_ctx):
args = expose.args
replaced_args = []
for arg in args:
arg = arg.replace(f"${answer_ctx["name"]}", str(answer_ctx["value"]))
arg = arg.replace(f"${answer_ctx['name']}", str(answer_ctx["value"]))
replaced_args.append(arg)

for previous_exposed in exposed:
Expand Down

0 comments on commit 0b58534

Please sign in to comment.