Skip to content

Commit

Permalink
small fix on j2 template identification
Browse files Browse the repository at this point in the history
  • Loading branch information
Oguzhan Yilmaz committed Jul 16, 2023
1 parent 6326451 commit 4a0292e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion balcony/terraform_import/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def gen_resource_name_and_import_id_from_op_data_(
operation_data, jmespath_query, to_resource_name_tpl, id_generator_tpl
):
result = []
is_basic_j2_template = to_resource_name_tpl.lstrip().startswith("{{")
is_basic_j2_template = '{%' not in to_resource_name_tpl.lstrip()
if jmespath_query and is_basic_j2_template:
# filter the operation data if jmespath_query is given
# and render them one by one
Expand Down

0 comments on commit 4a0292e

Please sign in to comment.