Skip to content

Commit

Permalink
(maint) Fix virtual and is_virtual facts for Nutanix (AHV) VMs
Browse files Browse the repository at this point in the history
  • Loading branch information
simonfuhrer committed Aug 8, 2019
1 parent 542e36d commit aed973c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/inc/facter/facts/vm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ namespace facter { namespace facts {
*/
constexpr static char const* kvm = "kvm";

/**
* The name for AHV (Nutanix) virtual machine.
*/
constexpr static char const* ahv = "ahv";

/**
* The name for Bochs virtual machine.
*/
Expand Down
1 change: 1 addition & 0 deletions lib/src/facts/windows/virtualization_resolver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ namespace facter { namespace facts { namespace windows {
make_tuple("Bochs", string(vm::bochs)),
make_tuple("Google", string(vm::gce)),
make_tuple("OpenStack", string(vm::openstack)),
make_tuple("AHV", string(vm::ahv)),
};

auto vals = _wmi->query(wmi::computersystem, {wmi::manufacturer, wmi::model});
Expand Down

0 comments on commit aed973c

Please sign in to comment.