From 6ffc51a75fb2680442bf9c2ea040176732ffa201 Mon Sep 17 00:00:00 2001 From: Thomas Woerner <twoerner@redhat.com> Date: Mon, 18 Jan 2021 14:19:41 +0100 Subject: [PATCH] utils/build-galaxy-release.sh: Use proper variable for galaxify A wrong variable was used inside of the while IFS read loops. This prevented that the modules, playbooks, tasks, example playbooks and also tests have been adapted for the galaxy release naming scheme. --- utils/build-galaxy-release.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/utils/build-galaxy-release.sh b/utils/build-galaxy-release.sh index fcb99e99..db5b84c3 100755 --- a/utils/build-galaxy-release.sh +++ b/utils/build-galaxy-release.sh @@ -30,33 +30,33 @@ sed -i -e "s/ansible.module_utils.ansible_freeipa_module/ansible_collections.${c find plugins/modules -name "*.py" -print0 | while IFS= read -d -r '' line; do - python utils/galaxyfy-module-EXAMPLES.py "$x" \ + python utils/galaxyfy-module-EXAMPLES.py "$line" \ "ipa" "$collection_prefix" done find roles/*/library -name "*.py" -print0 | while IFS= read -d -r '' line; do - python utils/galaxyfy-module-EXAMPLES.py "$x" \ + python utils/galaxyfy-module-EXAMPLES.py "$line" \ "ipa" "$collection_prefix" done for x in roles/*/tasks/*.yml; do - python utils/galaxyfy-playbook.py "$x" "ipa" "$collection_prefix" + python utils/galaxyfy-playbook.py "$line" "ipa" "$collection_prefix" done find playbooks -name "*.yml" -print0 | while IFS= read -d -r '' line; do - python utils/galaxyfy-playbook.py "$x" "ipa" "$collection_prefix" + python utils/galaxyfy-playbook.py "$line" "ipa" "$collection_prefix" done find . -name "README*.md" -print0 | while IFS= read -d -r '' line; do - python utils/galaxyfy-README.py "$x" "ipa" "$collection_prefix" + python utils/galaxyfy-README.py "$line" "ipa" "$collection_prefix" done find tests -name "*.yml" -print0 | while IFS= read -d -r '' line; do - python utils/galaxyfy-playbook.py "$x" "ipa" "$collection_prefix" + python utils/galaxyfy-playbook.py "$line" "ipa" "$collection_prefix" done #git diff -- GitLab