Skip to content

Commit

Permalink
fixed CLI vars to handle arrays in yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jonchenn committed Oct 11, 2023
1 parent 2913d6a commit b4ddc0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solutions_builder/cli/vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def replace_var_to_template(var_name, text, custom_template=False, debug=False):
# For example:
# PROJECT_ID: 12345 # sb-var:project_id
# GCP_REGION = "us-central1" # sb-var:gcp_region
match_pattern = f"^([^\\r]*[:|=]\\s*)([\"\']?)([^\"^\']*)([\"\']?)\\s*#\\s*sb-var:{var_name}"
match_pattern = f"^([^\\r]*[:|=][\\s\-]*)([\"\']?)([^\"^\']*)([\"\']?)\\s*#\\s*sb-var:{var_name}"

# This output patterh print the jinja2 template for the specific variable name.
# For example:
Expand Down

0 comments on commit b4ddc0d

Please sign in to comment.