Skip to content

fix variable quotes#924

Merged
ebattat merged 1 commit into
redhat-performance:mainfrom
ebattat:fix_var_quotes
Jul 3, 2025
Merged

fix variable quotes#924
ebattat merged 1 commit into
redhat-performance:mainfrom
ebattat:fix_var_quotes

Conversation

@ebattat

@ebattat ebattat commented Jul 3, 2025

Copy link
Copy Markdown
Member

Type of change

Note: Fill x in []

  • bug
  • enhancement
  • documentation
  • dependencies

Description

Fix variable quotes:
If SKIP_POLICIES_ALERT contains quotes or special characters (like [ or "), wrapping it again in double quotes inside the f-string can break things.
For example, if the env var is:
-e SKIP_POLICIES_ALERT="["unused_access_key"]"
which is invalid because the " inside the value clashes with the outer " — causing syntax issues or unexpected escaping.
Error:
ValueError: malformed node or string on line 1: <ast.Name object at 0x7f88ee8ea2d0>

For security reasons, all pull requests need to be approved first before running any automated CI

@ebattat ebattat requested a review from athiruma July 3, 2025 11:57
@ebattat ebattat self-assigned this Jul 3, 2025
@ebattat ebattat added the bug Something isn't working label Jul 3, 2025
@ebattat ebattat added the ok-to-test PR ok to test label Jul 3, 2025
@ebattat ebattat merged commit 7a7dcd9 into redhat-performance:main Jul 3, 2025
24 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in Cloud-Governance project Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ok-to-test PR ok to test

Projects

Development

Successfully merging this pull request may close these issues.

1 participant