1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-09-02 12:36:00 +00:00

Fix some problems.

This commit is contained in:
Lukas Ruzicka 2022-10-07 10:45:02 +02:00
parent de3e961a92
commit 7b125f58f8

View File

@ -371,6 +371,8 @@ sub bugzilla_setup {
assert_screen("anaconda_text_install_shell");
# Navigate to the libreport configuration directory
type_string("cd /etc/libreport/events/\n");
# Add some sleeps to make the output video more viewable
sleep(3);
# Change values in the report_Bugzilla.conf file
my $apikey = get_var("_SECRET_BUGZILLA_APIKEY") // undef;
# If we want to report to Bugzilla Staging, then we will
@ -379,10 +381,12 @@ sub bugzilla_setup {
my $bugzilla = get_var("BUGZILLA_INSTANCE") // "staging";
if ($bugzilla eq "staging") {
enter_cmd("sed -i 's/bugzilla.redhat.com/bugzilla.stage.redhat.com/g' report_Bugzilla.conf");
sleep(3);
}
# If API key is defined, update the configuration file with the API key
if ($apikey) {
enter_cmd("sed -i s/Bugzilla_APIKey =/Bugzilla_APIKey = $apikey/g report_Bugzilla.conf");
sleep(3);
}
#Switch back to the installation console
send_key("alt-f1");