From 11b28bf9f8d65db979f2820f3ca917307bb5836f Mon Sep 17 00:00:00 2001 From: Bruce CHEN <805899926@qq.com> Date: Tue, 27 Aug 2024 16:01:18 +0800 Subject: [PATCH] # --- server/chart/.jinja2ignore | 1 - server/docker/.jinja2ignore | 1 - server/share.py | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/server/chart/.jinja2ignore b/server/chart/.jinja2ignore index 1510ae4d2..611a2ffa3 100644 --- a/server/chart/.jinja2ignore +++ b/server/chart/.jinja2ignore @@ -1,5 +1,4 @@ .DS_Store README.md -___temp/ templates/ Chart.yaml \ No newline at end of file diff --git a/server/docker/.jinja2ignore b/server/docker/.jinja2ignore index 9ee2ad03c..07add95dc 100644 --- a/server/docker/.jinja2ignore +++ b/server/docker/.jinja2ignore @@ -1,6 +1,5 @@ .DS_Store README.md -___temp/ grafana/conf/dashboards/ homeassistant/conf/sensor.yaml nginx/node/base/conf/static/ diff --git a/server/share.py b/server/share.py index 6419102e6..13a844c93 100644 --- a/server/share.py +++ b/server/share.py @@ -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()):