mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 22:30:22 -07:00
Allow Xen Host and/or Xen VM names instead of their UUIDs (#9787)
* Allow using Xen Host and/or Xen VM names instead of their UUIDs for inventory * xen_orchestra inventory plugin allow using vm and host names instead of UUID inventory * Update changelog fragment with correct PR number * Set missing inventory attributes in unit test * Add version_added suggestion as per github comments * Description update. --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
8425464c0a
commit
e8e3e5c2b0
3 changed files with 51 additions and 2 deletions
|
@ -158,6 +158,8 @@ def test_verify_file_bad_config(inventory):
|
|||
|
||||
|
||||
def test_populate(inventory, mocker):
|
||||
inventory.host_entry_name_type = 'uuid'
|
||||
inventory.vm_entry_name_type = 'uuid'
|
||||
inventory.get_option = mocker.MagicMock(side_effect=get_option)
|
||||
inventory._populate(objects)
|
||||
actual = sorted(inventory.inventory.hosts.keys())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue