mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 07:02:09 +00:00
create: add better check for unused IDs
This commit is contained in:
parent
0e14d632bd
commit
5f20325f61
@ -422,8 +422,7 @@ __PACKAGE__->register_method({
|
|||||||
my $createfn = sub {
|
my $createfn = sub {
|
||||||
|
|
||||||
# test after locking
|
# test after locking
|
||||||
die "unable to create vm $vmid: config file already exists\n"
|
PVE::Cluster::check_vmid_unused($vmid);
|
||||||
if -f $filename;
|
|
||||||
|
|
||||||
my $realcmd = sub {
|
my $realcmd = sub {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user