mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-29 18:45:29 +00:00
only raise exception when parameter -force is set
This commit is contained in:
parent
c274d9f9f5
commit
a591eebacb
@ -1224,7 +1224,8 @@ __PACKAGE__->register_method({
|
||||
|
||||
my $vmid = extract_param($param, 'vmid');
|
||||
|
||||
raise_param_exc({ force => "Only root may use this option." }) if $user ne 'root@pam';
|
||||
raise_param_exc({ force => "Only root may use this option." })
|
||||
if $param->{force} && $user ne 'root@pam';
|
||||
|
||||
# test if VM exists
|
||||
PVE::QemuServer::load_config($vmid);
|
||||
|
Loading…
Reference in New Issue
Block a user