Skip to content

Commit

Permalink
Merge pull request #17872 from dzedro/libssh
Browse files Browse the repository at this point in the history
Don't add or remove modules on Maintenance tests
  • Loading branch information
dzedro committed Sep 27, 2023
2 parents 3588409 + ccb770a commit 251b806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/containers/common.pm
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ sub install_docker_when_needed {
activate_containers_module;

# Temporarly enable LTSS product on LTSS systems where it is not present
if (get_var('SCC_REGCODE_LTSS') && script_run('test -f /etc/products.d/SLES-LTSS.prod') != 0) {
if (get_var('SCC_REGCODE_LTSS') && script_run('test -f /etc/products.d/SLES-LTSS.prod') != 0 && !main_common::is_updates_tests) {
add_suseconnect_product('SLES-LTSS', undef, undef, '-r ' . get_var('SCC_REGCODE_LTSS'), 150);
$ltss_needed = 1;
}
Expand All @@ -99,7 +99,7 @@ sub install_docker_when_needed {
systemctl 'try-restart firewalld';
}

remove_suseconnect_product('SLES-LTSS') if $ltss_needed;
remove_suseconnect_product('SLES-LTSS') if $ltss_needed && !main_common::is_updates_tests;
}
}

Expand Down

0 comments on commit 251b806

Please sign in to comment.