Skip to content

Commit

Permalink
Merge pull request #2724 from craigcomstock/ENT-9931-2/3.21
Browse files Browse the repository at this point in the history
ENT-9931: Redirected all output when checking /sys/hypervisor/uuid with cat (3.21)
  • Loading branch information
craigcomstock authored Sep 6, 2023
2 parents ea1d74d + d80e8a0 commit 22baccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inventory/any.cf
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ bundle common cfe_autorun_inventory_aws
expression => isreadable("/sys/hypervisor/uuid", 1);
@else
"sys_hypervisor_uuid_readable" -> { "ENT-9931" }
expression => returnszero("${paths.cat} /sys/hypervisor/uuid 2>/dev/null", "useshell");
expression => returnszero("${paths.cat} /sys/hypervisor/uuid 2>&1 >/dev/null", "useshell");
@endif

!disable_inventory_aws.sys_hypervisor_uuid_readable::
Expand Down

0 comments on commit 22baccd

Please sign in to comment.