create: add better check for unused IDs

This commit is contained in:
Dietmar Maurer 2015-10-05 12:43:07 +02:00
parent 0e14d632bd
commit 5f20325f61

View File

@ -422,8 +422,7 @@ __PACKAGE__->register_method({
my $createfn = sub {
# test after locking
die "unable to create vm $vmid: config file already exists\n"
if -f $filename;
PVE::Cluster::check_vmid_unused($vmid);
my $realcmd = sub {