Remove dead code in core grains file for virt-what

This commit is contained in:
Ch3LL 2018-04-25 10:22:56 -04:00
parent 92e606251f
commit a59dd2785d
No known key found for this signature in database
GPG key ID: 132B55A7C13EFA73

View file

@ -675,13 +675,6 @@ def _virtual(osdata):
grains['virtual'] = 'kvm'
# Break out of the loop so the next log message is not issued
break
elif command == 'virt-what':
# if 'virt-what' returns nothing, it's either an undetected platform
# so we default just as virt-what to 'physical', otherwise use the
# platform detected/returned by virt-what
if output:
grains['virtual'] = output.lower()
break
elif command == 'prtdiag':
model = output.lower().split("\n")[0]
if 'vmware' in model: