mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-25 06:03:52 +03:00
cli tools: correctly handle warnings task status
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
205dbf39b1
commit
831ad442a2
@ -42,7 +42,7 @@ use base qw(PVE::CLIHandler);
|
||||
my $upid_exit = sub {
|
||||
my $upid = shift;
|
||||
my $status = PVE::Tools::upid_read_status($upid);
|
||||
exit($status eq 'OK' ? 0 : -1);
|
||||
exit(PVE::Tools::upid_status_is_error($status) ? -1 : 0);
|
||||
};
|
||||
|
||||
my $nodename = PVE::INotify::nodename();
|
||||
|
@ -81,7 +81,7 @@ our $cmddef = [ __PACKAGE__, 'qmrestore', ['archive', 'vmid'], undef,
|
||||
sub {
|
||||
my $upid = shift;
|
||||
my $status = PVE::Tools::upid_read_status($upid);
|
||||
exit($status eq 'OK' ? 0 : -1);
|
||||
exit(PVE::Tools::upid_status_is_error($status) ? -1 : 0);
|
||||
}];
|
||||
|
||||
1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user