Otherwise the API would return an error message because returning an
empty value is not defined in the API.
By dying we avoid confusions as the return will be an error and not a
successful call which should return a task ID.
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
die "unable to shrink disk size\n" if $newsize < $size;
- return if $size == $newsize;
+ die "disk is already at specified size\n" if $size == $newsize;
PVE::Cluster::log_msg('info', $authuser, "update CT $vmid: resize --disk $disk --size $sizestr");
my $realcmd = sub {