Skip to content
Snippets Groups Projects
Commit f4116923 authored by Florent Gluck's avatar Florent Gluck
Browse files

- vmedit now shows the VM's uuid instead of its name as it's confusing if the...

- vmedit now shows the VM's uuid instead of its name as it's confusing if the edit is actually used to update the VM's name
- updated validate script to use less memory
parent b2433ad3
Branches
No related tags found
No related merge requests found
...@@ -92,7 +92,8 @@ func (cmd *Edit)Run(args []string) int { ...@@ -92,7 +92,8 @@ func (cmd *Edit)Run(args []string) int {
statusCode = 1 statusCode = 1
} else { } else {
if resp.IsSuccess() { if resp.IsSuccess() {
u.Println("Successfully edited VM \""+vm.Name+"\"") u.Println("Successfully edited VM \""+vm.ID.String()+"\":")
u.Println(resp.String())
} else { } else {
u.PrintlnErr("Failed editing VM \""+vm.Name+"\": "+resp.Status()+": "+resp.String()) u.PrintlnErr("Failed editing VM \""+vm.Name+"\": "+resp.Status()+": "+resp.String())
statusCode = 1 statusCode = 1
......
...@@ -66,7 +66,7 @@ checkVar $baseTemplateID "tpllist" ...@@ -66,7 +66,7 @@ checkVar $baseTemplateID "tpllist"
OK OK
echo "Create base VM..." echo "Create base VM..."
vmID=`$nexus_cli vmcreate "$partial_name" 2 2000 user 1307:0165 $baseTemplateID | awk -F"|" '{print $2}'` vmID=`$nexus_cli vmcreate "$partial_name" 2 1500 user 067b:2303 $baseTemplateID | awk -F"|" '{print $2}'`
checkVar $vmID "vmcreate base VM" checkVar $vmID "vmcreate base VM"
OK OK
...@@ -81,13 +81,14 @@ checkVar $templateID "tplcreate" ...@@ -81,13 +81,14 @@ checkVar $templateID "tplcreate"
OK OK
echo "Create students VMs..." echo "Create students VMs..."
$nexus_cli vmcreate "$full_name" 1 2000 none none $templateID validation_data/students.csv $nexus_cli vmcreate "$full_name" 2 1500 none 1fc9:0132,03eb:6124 $templateID validation_data/students.csv
check "vmcreate VMs" check "vmcreate VMs"
OK OK
echo "Start students VMs..." echo "Start students VMs..."
$nexus_cli vmstart "$full_name" $nexus_cli vmstart "$full_name"
check "vmstart VMs" check "vmstart VMs"
sleep 3
OK OK
echo "Generate credentials pdf..." echo "Generate credentials pdf..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment