Skip to content

Commit

Permalink
Merge pull request #20634 from cedvid/hostname
Browse files Browse the repository at this point in the history
Increase timeout for nmcli device disconnect
  • Loading branch information
dzedro authored Nov 15, 2024
2 parents b577c78 + 3006b9c commit 602a746
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1203,9 +1203,8 @@ sub set_hostname {
next if ($dev eq 'lo');
next if !($line =~ /connected/);

# Default timeout (10 seconds) may be too short with qemu NO kvm, so increase to 20s - poo#131366
my $nmcli = get_var('QEMU_NO_KVM') ? 'nmcli -w 20' : 'nmcli';
assert_script_run "$nmcli device disconnect $dev";
# poo#169726
assert_script_run("nmcli -w 60 device disconnect $dev");
assert_script_run 'nmcli device connect ' . $dev;
}

Expand Down

0 comments on commit 602a746

Please sign in to comment.