Skip to content

Commit

Permalink
Merge pull request os-autoinst#21052 from BillAnastasiadis/test_aws
Browse files Browse the repository at this point in the history
Change the way BYOS is detected
  • Loading branch information
alvarocarvajald authored Jan 27, 2025
2 parents f3d4020 + e3b08a3 commit 87603bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/sles4sap/publiccloud/qesap_terraform.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use testapi;
use publiccloud::ssh_interactive 'select_host_console';
use publiccloud::instance;
use publiccloud::instances;
use publiccloud::utils qw(is_azure is_gce is_ec2 get_ssh_private_key_path);
use publiccloud::utils qw(is_azure is_gce is_ec2 get_ssh_private_key_path is_byos);
use sles4sap_publiccloud;
use qesapdeployment;
use serial_terminal 'select_serial_terminal';
Expand Down Expand Up @@ -177,7 +177,7 @@ sub run {
}
}

$playbook_configs{scc_code} = get_required_var('SCC_REGCODE_SLES4SAP') if ($os_image_name =~ /byos/i);
$playbook_configs{scc_code} = get_required_var('SCC_REGCODE_SLES4SAP') if is_byos();
my @addons = split(/,/, get_var('SCC_ADDONS', ''));
# This implementation has a known limitation
# if SCC_ADDONS has two or more elements (like "ltss,ltss_es")
Expand All @@ -189,7 +189,7 @@ sub run {
$name = get_addon_fullname($addon) if ($addon =~ 'ltss');
if ($name) {
$playbook_configs{ltss} = join(',', join('/', $name, scc_version(), 'x86_64'), $ADDONS_REGCODE{$name});
$playbook_configs{registration} = 'suseconnect' if ($os_image_name =~ /byos/i && $reg_mode !~ 'noreg');
$playbook_configs{registration} = 'suseconnect' if (is_byos() && $reg_mode !~ 'noreg');
}
}
$ansible_playbooks = create_playbook_section_list(%playbook_configs);
Expand Down

0 comments on commit 87603bd

Please sign in to comment.