-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New modules incur weird looking new section 'New Modules' #18
Comments
Also, I don't know how it detected the new modules to put them in its own section...? I had a fragment like: ---
major_changes:
- k8s_exec - New module for executing commands on pods via Kubernetes API. Does it scan the text for "New module" and then aggregate any modules that are mentioned, or is there some other way the tool finds new modules and puts them into the 'New Modules' section? |
It uses ansible-doc to get information on all modules. It's mostly interested in Are you running the generator in a checkout of the collection that's also found by ansible-doc? |
You can fix these paths by editing changelogs/changelog.yaml manually and adjusting the |
@felixfontein - Yes, I have the repository checked out into my ~/.ansible/collections path, and when I use
Setting the |
Curious as to why we add the fully qualified collection path under the
Is the I also agree that the modules and action plugins should use the same format as what you put into the task, i.e. |
@jborean93 it's not required and it shouldn't be there. I'll try to debug this. |
@geerlingguy I didn't mean that it is a long-term solution, but a short-term fix until I fixed the code generating them :) |
Hmm, I've tried to reproduce this with stable-2.9, stable-2.10 and devel, and with both community.crypto and community.kubernetes (PR 131's branch), and I always ended up with the correct value for I've also tried the following (next to run it locally in different variants on my machine):
And inside that:
Alternatively:
Same result, namespace is |
also works (i.e. |
I just tried it on a new container and I'm not able to replicate the error anymore. Will try again on my desktop tomorrow morning and see if I can figure out what is happening there. |
@jborean93 thanks a lot for trying to reproduce this! |
Figured it out, I had a symlink in You can use this to test it out pip install ansible-base==2.10.0b1
pip install antsibull-changelog
export ANSIBLE_COLLECTIONS_PATHS=~/.ansible2/collections:~/.ansible/collections
git clone https://github.com/ansible-collections/ansible.windows.git ~/.ansible/collections/ansible_collections/ansible/windows
mkdir -p ~/.ansible2/collections/ansible_collections/ansible
ln -s ~/.ansible/collections/ansible_collections/ansible/windows ~/.ansible2/collections/ansible_collections/ansible/windows
cd ~/.ansible/collections/ansible_collections/ansible/windows
antsibull-changelog release
cp plugins/modules/win_ping.py plugins/modules/win_ping2.py
cp plugins/modules/win_ping.ps1 plugins/modules/win_ping2.ps1
sed -i 's/module: win_ping/module: win_ping2\nversion_added: 1.0.0/g' plugins/modules/win_ping2.py
antsibull-changelog release --version 1.0.0 Edit: Just wanted to clarify the issue isn't solely the use of a symlink but rather having 2 collections installed under the same name with the other one having a higher precedence in |
@jborean93 thanks for figuring this out! As discussed on IRC, I'll implement the following:
|
I think I fixed this in #22. It will always copy the collection to @geerlingguy @jborean93 I'd be happy if you could test whether it solves the problem for you! |
In one release, our collection added two new modules, and the generated RST looked a bit weird to me...
What is this supposed to look like? And why oh why is the listing for each module so long?
The text was updated successfully, but these errors were encountered: