mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 11:22:47 +00:00
Fix virt role detection for kvm if no other match (#35403)
This fixes an indention bug introduced in
45a9f96774
that was causing the virtualization_role to be set to 'host'
for many cases incorrectly.
Fixes https://github.com/ansible/ansible/pull/21621
(the issue mentioned in the pr)
This commit is contained in:
@@ -209,7 +209,8 @@ class LinuxVirtual(Virtual):
|
||||
|
||||
else:
|
||||
virtual_facts['virtualization_type'] = 'kvm'
|
||||
virtual_facts['virtualization_role'] = 'host'
|
||||
virtual_facts['virtualization_role'] = 'host'
|
||||
|
||||
return virtual_facts
|
||||
|
||||
if 'vboxdrv' in modules:
|
||||
|
||||
Reference in New Issue
Block a user