mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
utils/build-galaxy-release: Fix doc_fragment prefix for galaxy
The items in extends_documentation_fragments of the modules need to
have the proper galaxy prefix.
The documentation fragment
- ipamodule_base_docs
needs to be changed to
- ${collection_prefix}.ipamodule_base_docs
This commit is contained in:
@@ -28,6 +28,12 @@ sed -i -e "s/ansible.module_utils.ansible_freeipa_module/ansible_collections.${c
|
||||
ln -sf ../../roles/*/action_plugins/*.py .
|
||||
})
|
||||
|
||||
echo "Fixing doc fragments in plugins/modules..."
|
||||
for file in plugins/modules/*.py; do
|
||||
sed -i -e "s/- ipamodule_base_docs/- ${collection_prefix}.ipamodule_base_docs/" "$file"
|
||||
done
|
||||
echo -e "\033[AFixing doc framents in plugins/modules... \033[32;1mDONE\033[0m"
|
||||
|
||||
echo "Fixing examples in plugins/modules..."
|
||||
find plugins/modules -name "*.py" -print0 |
|
||||
while IFS= read -d '' -r line; do
|
||||
|
||||
Reference in New Issue
Block a user