Skip to content

Commit

Permalink
ignore .pandoc_template.html5; improve logging
Browse files Browse the repository at this point in the history
.pandoc_template.html5 contains smart quotes that ansible-test
does not like - we only need this file for html conversion - we
don't need it in the collection
improve logging
  • Loading branch information
richm committed Jan 6, 2024
1 parent 16bdf91 commit c6427b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lsr_role2collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ def run(self):
"pytest_extra_requirements.txt",
"tox.ini",
"tuned_requirements.txt",
".pandoc_template.html5", # contains smart quotes - ansible-test does not like
)

DO_NOT_COPY = (
Expand Down Expand Up @@ -1790,11 +1791,11 @@ def process_readme(
map(os.path.expanduser, default_collections_paths.split(":"))
)
# top_dest_path is not in the default collections path.
# suggest to run ansible-playbook with ANSIBLE_COLLECTIONS_PATHS env var.
# suggest to run ansible-playbook with ANSIBLE_COLLECTIONS_PATH env var.
if current_dest not in default_collections_paths_list:
ansible_collections_paths = current_dest + ":" + default_collections_paths
print(
f"Run ansible-playbook with environment variable ANSIBLE_COLLECTIONS_PATHS={ansible_collections_paths}"
logging.debug(
f"Run ansible-playbook with environment variable ANSIBLE_COLLECTIONS_PATH={ansible_collections_paths}"
)
return 0

Expand Down

0 comments on commit c6427b0

Please sign in to comment.