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] 5eff31e760
[PR #8489/3716187f backport][stable-9] Fix OpenNebula inventory crash when NIC does not have IP (#8519)
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:35 +02:00
..
.keep Rename changelogs/fragments/.empty -> changelogs/fragments/.keep 2020-08-07 08:17:57 +02:00
9.1.0.yml Prepare 9.1.0 release. 2024-06-16 21:12:20 +02:00
8051-Redfish-Wait-For-Service.yml [PR #8434/961767e2 backport][stable-9] Redfish: Add options to check the availability of the service (#8457) 2024-06-03 07:15:58 +02:00
8402-add-diif-mode-openbsd-pkg.yml [PR #8402/e690317e backport][stable-9] Add partial diff support, not in check mode to openbsd_pkg (#8447) 2024-06-01 22:09:42 +02:00
8404-ipa_dnsrecord_sshfp.yml [PR #8404/1c4ab7fa backport][stable-9] Add support for SSHFP records to ipa_dnsrecord module (#8468) 2024-06-06 13:18:50 +02:00
8415-cmd-runner-stack.yml [PR #8415/7d72300c backport][stable-9] add cmd_runner_fmt.stack decorator (#8448) 2024-06-01 22:54:14 +02:00
8430-fix-opentelemetry-when-using-logs-with-uri-or-slurp-tasks.yaml [PR #8430/5041ebe5 backport][stable-9] fix(opentelemetry): remove request from the logs (#8458) 2024-06-03 07:15:49 +02:00
8431-galaxy-upgrade.yml [PR #8431/d46e12e2 backport][stable-9] ansible_galaxy_install: add upgrade feature (#8451) 2024-06-02 00:25:32 +02:00
8440-allow-api-port-specification.yaml [PR #8441/d2d7deb4 backport][stable-9] #8440 Allow for API Port to be specified when using proxmox_kvm (#8478) 2024-06-08 14:59:27 +02:00
8452-git_config-absent.yml [PR #8452/2a3819a6 backport][stable-9] git_config: fix state=absent if value is present (#8466) 2024-06-06 13:19:02 +02:00
8453-git_config-deprecate-read.yml [PR #8453/0129346e backport][stable-9] git_config: deprecate reading values (#8463) 2024-06-04 06:35:46 +02:00
8464-redis-add-cluster-info.yml [PR #8464/800bc011 backport][stable-9] feat(redis_info): add option to fetch cluster info (#8493) 2024-06-13 07:19:15 +02:00
8471-proxmox-vm-info-network.yml [PR #8471/2574cb0d backport][stable-9] feat: proxmox_vm_info - add network information for guests (#8505) 2024-06-14 07:54:53 +02:00
8479-cmdrunner-improvements.yml [PR #8479/71f96748 backport][stable-9] cmd_runner mod util: improvements (#8504) 2024-06-14 07:55:02 +02:00
8489-fix-opennebula-inventory-crash-when-nic-has-no-ip.yml [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
8497-crypt.yml [PR #8497/f0940d82 backport][stable-9] homectl, udm_user: guard crypt imports (#8499) 2024-06-13 22:01:33 +02:00
8512-as-bool-not.yml [PR #8512/ec4cf555 backport][stable-9] simplify cmd_runner_fmt.as_bool_not() (#8515) 2024-06-16 10:10:55 +02:00