Skip to content

Commit

Permalink
Disable calls of upload_y2logs on SLE 16
Browse files Browse the repository at this point in the history
SLE 16 will not come with YaST, so our tests should not even attempt to
collect y2logs when running in those versions.
  • Loading branch information
alvarocarvajald committed Feb 3, 2025
1 parent 4f5dcce commit 11a31f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/hacluster.pm
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ sub ha_export_logs {
upload_logs('/tmp/crm.txt');

# Extract YaST logs and upload them
upload_y2logs(failok => 1);
upload_y2logs(failok => 1) if is_sle('<16');

# Generate the packages list
script_run "rpm -qa > $packages_list";
Expand Down
2 changes: 1 addition & 1 deletion lib/sles4sap.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,7 @@ sub post_fail_hook {
select_console('root-console');

# YaST logs
upload_y2logs;
upload_y2logs if is_sle('<16');

# HANA installation logs, if needed
$self->upload_hana_install_log if get_var('HANA');
Expand Down

0 comments on commit 11a31f9

Please sign in to comment.