community.general/plugins
patchback[bot] fc7609628e
[PR #8532/24b74cc4 backport][stable-9] opennebula inventory: add VM ID and VM host to data (#9003)
opennebula inventory: add VM ID and VM host to data (#8532)

* Add VM id and VM host to opennebula inventory data

##### SUMMARY
<!--- Describe the change below, including rationale and design decisions --> To enable greater use of the inventory, add the ID of the VM, and the hostname of the host the VM is running on to the inventory output

<!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->

<!--- Please do not forget to include a changelog fragment:
      https://docs.ansible.com/ansible/devel/community/collection_development_process.html#creating-changelog-fragments
      No need to include one for docs-only or test-only PR, and for new plugin/module PRs.
      Read about more details in CONTRIBUTING.md.
      -->

##### ISSUE TYPE
<!--- Pick one or more below and delete the rest.
      'Test Pull Request' is for PRs that add/extend tests without code changes. -->
- Feature Pull Request

##### COMPONENT NAME
<!--- Write the SHORT NAME of the module, plugin, task or feature below. --> opennebula.py

##### ADDITIONAL INFORMATION
<!--- Include additional information to help people understand the change here --> <!--- A step-by-step reproduction of the problem is helpful if there is no related issue -->

<!--- Paste verbatim command output below, e.g. before and after your change -->
```paste below
                "host": "foo23.host",
                "id": 1234,
```

* Create 8532-expand-opennuebula-inventory-data.yml

* Update opennebula.py

* Update changelogs/fragments/8532-expand-opennuebula-inventory-data.yml

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

* Add check for empty records and add test

* fix attribute test

* fix attribute test

* fix attribute test

* fix attribute test

* Update plugins/inventory/opennebula.py

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

* update as per guidance

* restore attribute checks

* fix attr

* fix indent

* PR Fixes

* add attribute check in case of empty variable

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Александр Бакановский <abakanovskii@astralinux.ru>
(cherry picked from commit 24b74cc4b9)

Co-authored-by: Tom Paine <github@aioue.net>
2024-10-07 23:10:38 +02:00
..
action [PR #8720/9a16eaf9 backport][stable-9] Fix pylint and pep8 issues exposed by latest ansible-core's ansible-test sanity checks (#8722) 2024-08-07 15:49:06 +02:00
become [PR #8623/a24ee93f backport][stable-9] Type options of become plugins (#8659) 2024-07-21 22:15:40 +02:00
cache [PR #8833/26df6c76 backport][stable-9] use dict comprehension in plugins, part 3 (#8835) 2024-09-08 14:46:13 +02:00
callback [PR #8741/73b54139 backport][stable-9] fix(opentelemetry): adjust default value for store_spans_in_file causing traces to be produced to a file named None (#8751) 2024-08-12 08:06:22 +02:00
connection [PR #8627/ce65eb87 backport][stable-9] Type options of connection plugins (#8662) 2024-07-21 22:16:12 +02:00
doc_fragments [PR #8983/5b4f4174 backport][stable-9] Update docs with references to man pages (#8994) 2024-10-07 22:19:29 +02:00
filter [PR #8814/ecc048bc backport][stable-9] Use dict comprehension in plugins (#8819) 2024-09-01 20:55:02 +02:00
inventory [PR #8532/24b74cc4 backport][stable-9] opennebula inventory: add VM ID and VM host to data (#9003) 2024-10-07 23:10:38 +02:00
lookup [PR #8966/5e6b8e53 backport][stable-9] dig lookup: Allow to pass port for DNS lookup (#9004) 2024-10-07 23:10:04 +02:00
module_utils [PR #8990/447d4b02 backport][stable-9] redfish_config new bool parameter to automatically delete 'None' type volumes. (#9008) 2024-10-07 23:09:55 +02:00
modules [PR #8940/c814fd05 backport][stable-9] keycloak_userprofile: improve diff by deserializing fetched kc.user.profile.config and serializing it before sending (#9002) 2024-10-07 23:10:29 +02:00
plugin_utils [PR #8814/ecc048bc backport][stable-9] Use dict comprehension in plugins (#8819) 2024-09-01 20:55:02 +02:00
test [PR #8595/8990f97b backport][stable-9] New Plugins #8594 (#8618) 2024-07-13 14:19:14 +02:00