Skip to content

Commit

Permalink
can squash this one, use isreadable() if available
Browse files Browse the repository at this point in the history
  • Loading branch information
craigcomstock committed Sep 1, 2023
1 parent 90f0c8c commit 51950c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inventory/any.cf
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,13 @@ bundle common cfe_autorun_inventory_aws
scope => "namespace",
if => isvariable("cfe_autorun_inventory_dmidecode.dmi[bios-vendor]");

@if minimum_version(3.22.0)
"sys_hypervisor_uuid_readable" -> { "ENT-9931" }
expression => isreadable("/sys/hypervisor/uuid", 1);
@else
"sys_hypervisor_uuid_readable" -> { "ENT-9931" }
expression => returnszero("${paths.cat} /sys/hypervisor/uuid 2>/dev/null", "useshell");
@endif

!disable_inventory_aws.sys_hypervisor_uuid_readable::
"ec2_instance" -> { "CFE-2924" }
Expand Down

0 comments on commit 51950c2

Please sign in to comment.