diff --git a/adf_core_python/cli/cli.py b/adf_core_python/cli/cli.py index 232bd1b..b14a1c7 100644 --- a/adf_core_python/cli/cli.py +++ b/adf_core_python/cli/cli.py @@ -38,6 +38,8 @@ def _copy_template( for file in files: file_path = os.path.join(root, file) with open(file_path, "r") as f: + if not file_path.endswith((".py", ".yaml", ".json")): + continue content = f.read() with open(file_path, "w") as f: f.write(content.replace(NAME_PLACEHOLDER, name))