1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/inventory
patchback[bot] 37308c929b
[PR #8510/21b16c1c backport][stable-9] Update VirtualBox Group parsing to align with documentation. (#8621)
Update VirtualBox Group parsing to align with documentation. (#8510)

* Update VirtualBox Group parsing to align with documentation.

Previously, we could separate the group string on the `/` char and
consider each element to be distinct, top-level groups. This change
implements the notion of nested groups and the use of the `,` char to
split multiple groups.

* Address code review comments.

Changed the implementation from a breaking change to a minor change by
introducing a new parameter to configure the behaviour. Keep the default
values to maintain the existing behaviour, and allow consumers an option
to opt-in.

* Fix line length.

The long lines were tripping CI. Reduce the length.

* Apply suggestions from code review

Update documentation to match expected conventions and correct the final rendered formatting.
Set the initial parent_group to `None` instead of `all` and rely on the parent class' inventory reconciliation logic to ensure consistent behaviour across different inventory plugins.

Co-authored-by: Felix Fontein <felix@fontein.de>

* Reword module arg description to avoid issues with CI.

One of the lines ended with a colon character which made the CI tests
fail since it would interpret it as a YAML key. Reworded the description
altogether to avoid that issue.

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 21b16c1c77)

Co-authored-by: lyrandy <42095565+lyrandy@users.noreply.github.com>
2024-07-14 12:17:49 +02:00
..
cobbler.py inventory plugins: make wrapping variables as unsafe smarter to avoid triggering an AWX bug (#8225) 2024-04-20 09:39:42 +02:00
gitlab_runners.py inventory plugins: make wrapping variables as unsafe smarter to avoid triggering an AWX bug (#8225) 2024-04-20 09:39:42 +02:00
icinga2.py inventory plugins: make wrapping variables as unsafe smarter to avoid triggering an AWX bug (#8225) 2024-04-20 09:39:42 +02:00
linode.py inventory plugins: make wrapping variables as unsafe smarter to avoid triggering an AWX bug (#8225) 2024-04-20 09:39:42 +02:00
lxd.py inventory plugins: make wrapping variables as unsafe smarter to avoid triggering an AWX bug (#8225) 2024-04-20 09:39:42 +02:00
nmap.py inventory plugins: make wrapping variables as unsafe smarter to avoid triggering an AWX bug (#8225) 2024-04-20 09:39:42 +02:00
online.py inventory plugins: make wrapping variables as unsafe smarter to avoid triggering an AWX bug (#8225) 2024-04-20 09:39:42 +02:00
opennebula.py [PR #8489/3716187f backport][stable-9] Fix OpenNebula inventory crash when NIC does not have IP (#8519) 2024-06-16 22:24:35 +02:00
proxmox.py inventory plugins: make wrapping variables as unsafe smarter to avoid triggering an AWX bug (#8225) 2024-04-20 09:39:42 +02:00
scaleway.py inventory plugins: make wrapping variables as unsafe smarter to avoid triggering an AWX bug (#8225) 2024-04-20 09:39:42 +02:00
stackpath_compute.py inventory plugins: make wrapping variables as unsafe smarter to avoid triggering an AWX bug (#8225) 2024-04-20 09:39:42 +02:00
virtualbox.py [PR #8510/21b16c1c backport][stable-9] Update VirtualBox Group parsing to align with documentation. (#8621) 2024-07-14 12:17:49 +02:00
xen_orchestra.py inventory plugins: make wrapping variables as unsafe smarter to avoid triggering an AWX bug (#8225) 2024-04-20 09:39:42 +02:00