X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FRESTHandler.pm;h=ca3f99b5b58e8a948cf9976db8ef4e76b94670ba;hp=6799fde7668e4c2a38b78c883187e877c012fc46;hb=2c2a5fd3df9c12f69aa1e8e36f4badd4fde92458;hpb=a76028f8472ac1b64c4d44d4111d2c42879485f4 diff --git a/src/PVE/RESTHandler.pm b/src/PVE/RESTHandler.pm index 6799fde..ca3f99b 100644 --- a/src/PVE/RESTHandler.pm +++ b/src/PVE/RESTHandler.pm @@ -36,8 +36,8 @@ sub api_clone_schema { if ($p =~ m/^([a-z]+)(\d+)$/) { if ($2 == 0) { $p = "$1\[n\]"; - } else { - next; + } elsif (defined($d->{$1.'0'})) { + next; # only handle once for -xx0, but only if -xx0 exists } } $res->{$k}->{$p} = ref($pd) ? clone($pd) : $pd;