Skip to content

Commit

Permalink
Fix ddev create (README file gets overwritten) (#18879)
Browse files Browse the repository at this point in the history
* fix ddev create

* changelog
  • Loading branch information
HadhemiDD authored Oct 21, 2024
1 parent 849a253 commit d812e0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions datadog_checks_dev/changelog.d/18879.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix ddev create bug where README file gets overwritten
2 changes: 2 additions & 0 deletions datadog_checks_dev/datadog_checks/dev/tooling/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ def create_template_files(template_name, new_root, config, repo_choice, read=Fal
for template_file in template_files:
if template_file.endswith('1.added') and repo_choice != 'core':
continue
if template_root == root and template_file == "README.md":
continue
if not template_file.endswith(('.pyc', '.pyo')):
if template_file == 'README.md' and config.get('support_type') in ('partner', 'contrib'):
# Custom README for the marketplace/partner support_type integrations
Expand Down

0 comments on commit d812e0e

Please sign in to comment.