fix: by_config_toml: duplicate [runners.feature_flags] when an unmanaged - #445
Conversation
section already exists
|
Hi, thank you for your time creating the patch. I just wanted to clarify something. The section I'm asking so to keep in mind if we should tackle this problem elsewhere as well. |
|
Thanks for checking. No, the existing section was not unrelated to the role. The entire The issue appeared when I renamed two runners, both in GitLab and in my Ansible configuration. Everything worked correctly before that change. My understanding is that the rename caused a registration/unregistration operation that rewrote On the following So I think the runner rename and register/unregister paths are indeed worth checking. However, the original configuration and feature flag sections were created by the role, not by an external or manual configuration. |
|
Thank you for your explanation. This kind of workflow might need a bit of work down the line to be supported, because right now renaming runners does create problems. I am merging this and keeping the problem as a thing to keep in mind. |
Fix and closed #444
section already exists
Log before fix
Log after fix
The generated file
config.tomlis correct.I didn't write the tests because I'm not comfortable with molecules.
But tested on my today's deploy.