mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 18:59:41 +00:00
followup: s/targetstorage map/storage map/ for parameter exceptions
to reduce duplicated info in the error slightly Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
abff03211f
commit
e214cda8f5
@ -2069,7 +2069,7 @@ __PACKAGE__->register_method({
|
|||||||
raise_param_exc({ targetstorage => "targetstorage can only by used with migratedfrom." })
|
raise_param_exc({ targetstorage => "targetstorage can only by used with migratedfrom." })
|
||||||
if !$migratedfrom;
|
if !$migratedfrom;
|
||||||
$storagemap = eval { PVE::JSONSchema::parse_idmap($targetstorage, 'pve-storage-id') };
|
$storagemap = eval { PVE::JSONSchema::parse_idmap($targetstorage, 'pve-storage-id') };
|
||||||
raise_param_exc({ targetstorage => "failed to parse targetstorage map: $@" })
|
raise_param_exc({ targetstorage => "failed to parse storage map: $@" })
|
||||||
if $@;
|
if $@;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3463,7 +3463,7 @@ __PACKAGE__->register_method({
|
|||||||
};
|
};
|
||||||
|
|
||||||
my $storagemap = eval { PVE::JSONSchema::parse_idmap($targetstorage, 'pve-storage-id') };
|
my $storagemap = eval { PVE::JSONSchema::parse_idmap($targetstorage, 'pve-storage-id') };
|
||||||
raise_param_exc({ targetstorage => "failed to parse targetstorage map: $@" })
|
raise_param_exc({ targetstorage => "failed to parse storage map: $@" })
|
||||||
if $@;
|
if $@;
|
||||||
|
|
||||||
$rpcenv->check_vm_perm($authuser, $vmid, undef, ['VM.Config.Disk'])
|
$rpcenv->check_vm_perm($authuser, $vmid, undef, ['VM.Config.Disk'])
|
||||||
|
Loading…
Reference in New Issue
Block a user