Skip to content

Commit

Permalink
Missed another filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Qalthos committed Sep 23, 2024
1 parent 14cfb00 commit 2db0a7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ansible_creator/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import yaml

from ansible_creator.constants import SKIP_DIRS
from ansible_creator.constants import SKIP_DIRS, SKIP_FILES_TYPES


if TYPE_CHECKING:
Expand Down Expand Up @@ -248,6 +248,11 @@ def each_obj(
*self._recursive_walk(root=obj, resource=resource, template_data=template_data),
]

if dest_path.is_file() and (
obj.name.split(".")[-1] in SKIP_FILES_TYPES or obj.name == "__meta__.yml"
):
return []

return [dest_path]

def _per_container(self, resource: str) -> list[DestinationFile]:
Expand Down

0 comments on commit 2db0a7e

Please sign in to comment.