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.
This commit is contained in:
Thomas Woerner
2021-01-18 14:19:41 +01:00
parent b738085ba4
commit 6ffc51a75f

View File

@@ -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