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/changelogs/fragments
patchback[bot] b901fa7463
[PR #8489/3716187f backport][stable-8] Fix OpenNebula inventory crash when NIC does not have IP (#8518)
Fix OpenNebula inventory crash when NIC does not have IP (#8489)

* Fix OpenNebula inventory crash when NIC does not have IP

Match IPv6 behaviour.

When a NIC does not have an IP:
  File "ansible/inventory/manager.py", line 292, in parse_source
    plugin.parse(self._inventory, self._loader, source, cache=cache)
  File "ansible-cm/plugins/inventory/opennebula.py", line 263, in parse
    self._populate()
  File "ansible-cm/plugins/inventory/opennebula.py", line 226, in _populate
    servers = self._retrieve_servers(filter_by_label)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "ansible-cm/plugins/inventory/opennebula.py", line 210, in _retrieve_servers
    server['v4_first_ip'] = self._get_vm_ipv4(vm)
                            ^^^^^^^^^^^^^^^^^^^^^
  File "ansible-cm/plugins/inventory/opennebula.py", line 154, in _get_vm_ipv4
    return net['IP']

* Update to call to match IPv6 and add changelog fragment

* Update changelog fragment.

---------

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

Co-authored-by: Tom Paine <github@aioue.net>
2024-06-16 22:24:30 +02:00
..
.keep Rename changelogs/fragments/.empty -> changelogs/fragments/.keep 2020-08-07 08:17:57 +02:00
8.6.2.yml Prepare 8.6.2 release. 2024-06-16 21:12:49 +02:00
8403-fix-typeerror-in-keycloak-client.yaml [PR #8403/572caeaa backport][stable-8] keycloak_client: avoid TypeError if result["attributes"] is a list (#8426) 2024-05-26 21:17:34 +02:00
8406-fix-homebrew-cask-warning.yaml [stable-8] Fix the homebrew module failing because of warnings (#8406) (#8429) 2024-06-01 21:32:38 +02:00
8430-fix-opentelemetry-when-using-logs-with-uri-or-slurp-tasks.yaml [stable-8] fix(opentelemetry): remove request from the logs (#8430) (#8461) 2024-06-04 06:28:38 +02:00
8452-git_config-absent.yml [PR #8452/2a3819a6 backport][stable-8] git_config: fix state=absent if value is present (#8465) 2024-06-06 13:18:57 +02:00
8489-fix-opennebula-inventory-crash-when-nic-has-no-ip.yml [PR #8489/3716187f backport][stable-8] Fix OpenNebula inventory crash when NIC does not have IP (#8518) 2024-06-16 22:24:30 +02:00
8497-crypt.yml [PR #8497/f0940d82 backport][stable-8] homectl, udm_user: guard crypt imports (#8498) 2024-06-13 22:01:30 +02:00