1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Bug #1314: Side-effect from previous commit, VMs were instantiated with wrong name when no name is provided.

(cherry picked from commit ce9c84a35480bc872f76c3580085ebd145e3d3cd)
This commit is contained in:
Hector Sanjuan 2012-07-03 19:16:44 +02:00 committed by Ruben S. Montero
parent c1a1cc5813
commit 15ed6b772b

View File

@ -1334,7 +1334,7 @@ function setupCreateVMDialog(){
};
if (!vm_name.length){
vm_name = $('#template_id option:selected',this).text();
vm_name = getTemplateName(template_id);
};
if (vm_name.indexOf("%i") == -1){ //no wildcard