Skip to content

Commit

Permalink
Tidy fix2
Browse files Browse the repository at this point in the history
  • Loading branch information
vtrubovics committed Nov 26, 2024
1 parent 4fb118b commit cc48ec3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/oscap_tests.pm
Original file line number Diff line number Diff line change
Expand Up @@ -905,12 +905,12 @@ sub get_test_exclusions {
my $exclusions_data = YAML::PP::Load($data);
record_info("Looking exclusions", "Looking exclusions for \nprofile_ID: $profile_ID\ntype: $type\narch: $arch\nname: $exclusions_list_name\nService Pack: $sles_sp");

if ($exclusions_file_name =~ /base/) {
$exclusions = $exclusions_data->{$profile_ID}->{$type}->{$arch}->{$exclusions_list_name};
}
else {
$exclusions = $exclusions_data->{$profile_ID}->{$type}->{$arch}->{$exclusions_list_name}->{$sles_sp};
}
if ($exclusions_file_name =~ /base/) {
$exclusions = $exclusions_data->{$profile_ID}->{$type}->{$arch}->{$exclusions_list_name};
}
else {
$exclusions = $exclusions_data->{$profile_ID}->{$type}->{$arch}->{$exclusions_list_name}->{$sles_sp};
}
# If results defined
if (defined $exclusions) {
@exclusions = @$exclusions;
Expand Down

0 comments on commit cc48ec3

Please sign in to comment.