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)
pull/35514/head
Adrian Likins 7 years ago committed by GitHub
parent 6cc5e4c9df
commit bf5770dec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save