Skip to content

Commit

Permalink
Fixed /sys/hypervisor/uuid is readable test for pre 3.22.0 versions
Browse files Browse the repository at this point in the history
The 2>&1 and >/dev/null were in the wrong order.

Ticket: ENT-9931
Changelog: none
(cherry picked from commit e23a185)
  • Loading branch information
craigcomstock committed Sep 7, 2023
1 parent 29c96b6 commit 69875b9
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 @@ -608,7 +608,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>&1 >/dev/null", "useshell");
expression => returnszero("${paths.cat} /sys/hypervisor/uuid >/dev/null 2>&1", "useshell");
@endif

!disable_inventory_aws.sys_hypervisor_uuid_readable::
Expand Down

0 comments on commit 69875b9

Please sign in to comment.