Skip to content

Commit

Permalink
Add nutanix detection grain
Browse files Browse the repository at this point in the history
  • Loading branch information
ycedres committed Dec 18, 2024
1 parent 7217fcc commit b88c1bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion salt/grains/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,9 +914,12 @@ def _virtual(osdata):
break
elif command == "virt-what":
for line in output.splitlines():
if line in ("kvm", "qemu", "uml", "xen"):
if line in ("kvm", "qemu", "uml", "xen", "nutanix-kvm"):
grains["virtual"] = line
break
elif "nutanix" in line:
grains["virtual"] = "kvm"
grains["virtual_subtype"] = "Nutanix"
elif "lxc" in line:
grains["virtual"] = "container"
grains["virtual_subtype"] = "LXC"
Expand Down

0 comments on commit b88c1bf

Please sign in to comment.