mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-06 15:30:07 +00:00
api: remove unused size variable in check_storage_access
Remove variable `$size`, which is not used here and likely a copy-paste redundancy from the `create_disks` subroutine. Signed-off-by: Daniel Kral <d.kral@proxmox.com>
This commit is contained in:
parent
767dea05da
commit
c68ee66c37
@ -148,7 +148,7 @@ my $check_storage_access = sub {
|
|||||||
} elsif ($isCDROM && ($volid eq 'cdrom')) {
|
} elsif ($isCDROM && ($volid eq 'cdrom')) {
|
||||||
$rpcenv->check($authuser, "/", ['Sys.Console']);
|
$rpcenv->check($authuser, "/", ['Sys.Console']);
|
||||||
} elsif (!$isCDROM && ($volid =~ $PVE::QemuServer::Drive::NEW_DISK_RE)) {
|
} elsif (!$isCDROM && ($volid =~ $PVE::QemuServer::Drive::NEW_DISK_RE)) {
|
||||||
my ($storeid, $size) = ($2 || $default_storage, $3);
|
my $storeid = $2 || $default_storage;
|
||||||
die "no storage ID specified (and no default storage)\n" if !$storeid;
|
die "no storage ID specified (and no default storage)\n" if !$storeid;
|
||||||
$rpcenv->check($authuser, "/storage/$storeid", ['Datastore.AllocateSpace']);
|
$rpcenv->check($authuser, "/storage/$storeid", ['Datastore.AllocateSpace']);
|
||||||
my $scfg = PVE::Storage::storage_config($storecfg, $storeid);
|
my $scfg = PVE::Storage::storage_config($storecfg, $storeid);
|
||||||
|
Loading…
Reference in New Issue
Block a user