community.general/plugins
Tom Paine 24b74cc4b9
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>
2024-10-07 22:16:29 +02:00
..
action Fix pylint and pep8 issues exposed by latest ansible-core's ansible-test sanity checks (#8720) 2024-08-07 15:18:58 +02:00
become Type options of become plugins (#8623) 2024-07-21 21:02:49 +02:00
cache use dict comprehension in plugins, part 3 (#8833) 2024-09-08 14:22:37 +02:00
callback fix(opentelemetry): adjust default value for `store_spans_in_file` causing traces to be produced to a file named `None` (#8741) 2024-08-12 07:42:05 +02:00
connection Type options of connection plugins (#8627) 2024-07-21 21:04:53 +02:00
doc_fragments Update docs with references to man pages (#8983) 2024-10-07 22:00:26 +02:00
filter Use dict comprehension in plugins (#8814) 2024-09-01 20:22:53 +02:00
inventory opennebula inventory: add VM ID and VM host to data (#8532) 2024-10-07 22:16:29 +02:00
lookup passwordstore: Support subkey creation and update (#8952) 2024-10-07 22:12:43 +02:00
module_utils one_image/one_image_info: refactor (#8889) 2024-10-05 15:02:01 +02:00
modules keycloak_userprofile: improve diff by deserializing fetched `kc.user.profile.config` and serializing it before sending (#8940) 2024-10-07 22:15:45 +02:00
plugin_utils Use dict comprehension in plugins (#8814) 2024-09-01 20:22:53 +02:00
test New Plugins #8594 (#8595) 2024-07-13 13:32:36 +02:00