Fix virt role detection for kvm if no other match ()

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:
Adrian Likins 2018-01-30 11:42:13 -05:00 committed by GitHub
parent 6cc5e4c9df
commit bf5770dec4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: