From b88c1bfb33654e756d929ed2850bca58e826df98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yeray=20Guti=C3=A9rrez=20Cedr=C3=A9s?= Date: Wed, 18 Dec 2024 15:13:59 +0000 Subject: [PATCH] Add nutanix detection grain --- salt/grains/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/salt/grains/core.py b/salt/grains/core.py index 98bbd3868e..4e471a99b6 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -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"