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:
parent
6cc5e4c9df
commit
bf5770dec4
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue