Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
  • Loading branch information
czy21 committed Aug 27, 2024
1 parent 85b7339 commit 11b28bf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion server/chart/.jinja2ignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.DS_Store
README.md
___temp/
templates/
Chart.yaml
1 change: 0 additions & 1 deletion server/docker/.jinja2ignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.DS_Store
README.md
___temp/
grafana/conf/dashboards/
homeassistant/conf/sensor.yaml
nginx/node/base/conf/static/
Expand Down
2 changes: 1 addition & 1 deletion server/share.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def __loop_namespaces(self, namespaces: list[Namespace], global_env: dict, args:
file_util.write_text(role_env_output_file, yaml_util.dump(role_env))
role_env |= args.param
# process template
for t in filter(lambda f: f.is_file() and not any(regex_util.match_rules(["build/", "___temp/", role_env_file.name], f.as_posix()).values()), role_path.rglob("*")):
for t in filter(lambda f: f.is_file() and not any(regex_util.match_rules(["build", "___temp", role_env_file.name], f.as_posix()).values()), role_path.rglob("*")):
_rules = regex_util.match_rules([*jinja2ignore_rules], t.as_posix(), ".jinja2ignore {0}".format(self.__loop_namespaces.__name__))
role_output_file = role_output_path.joinpath(t.relative_to(role_path))
if not any(_rules.values()):
Expand Down

0 comments on commit 11b28bf

Please sign in to comment.