qmp client: fix indendation of timeout checks

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-14 09:24:21 +02:00
parent 4bb19a2559
commit 46336bd283

View File

@ -117,19 +117,21 @@ sub cmd {
# the variance for Windows guests can be big. And there might be hook scripts # the variance for Windows guests can be big. And there might be hook scripts
# that are executed upon thaw, so use 3 minutes to be on the safe side. # that are executed upon thaw, so use 3 minutes to be on the safe side.
$timeout = 3 * 60; $timeout = 3 * 60;
} elsif ($cmd->{execute} eq 'savevm-start' || } elsif (
$cmd->{execute} eq 'savevm-end' || $cmd->{execute} eq 'savevm-start' ||
$cmd->{execute} eq 'query-backup' || $cmd->{execute} eq 'savevm-end' ||
$cmd->{execute} eq 'query-block-jobs' || $cmd->{execute} eq 'query-backup' ||
$cmd->{execute} eq 'block-job-cancel' || $cmd->{execute} eq 'query-block-jobs' ||
$cmd->{execute} eq 'block-job-complete' || $cmd->{execute} eq 'block-job-cancel' ||
$cmd->{execute} eq 'backup-cancel' || $cmd->{execute} eq 'block-job-complete' ||
$cmd->{execute} eq 'query-savevm' || $cmd->{execute} eq 'backup-cancel' ||
$cmd->{execute} eq 'delete-drive-snapshot' || $cmd->{execute} eq 'query-savevm' ||
$cmd->{execute} eq 'guest-shutdown' || $cmd->{execute} eq 'delete-drive-snapshot' ||
$cmd->{execute} eq 'blockdev-snapshot-internal-sync' || $cmd->{execute} eq 'guest-shutdown' ||
$cmd->{execute} eq 'blockdev-snapshot-delete-internal-sync' || $cmd->{execute} eq 'blockdev-snapshot-internal-sync' ||
$cmd->{execute} eq 'snapshot-drive' ) { $cmd->{execute} eq 'blockdev-snapshot-delete-internal-sync' ||
$cmd->{execute} eq 'snapshot-drive'
) {
$timeout = 10*60; # 10 mins ? $timeout = 10*60; # 10 mins ?
} else { } else {
$timeout = 3; # default $timeout = 3; # default