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

vmlist now also shows the state of a VM

parent 173256d6
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ func (cmd *Del)Run(args []string) int { ...@@ -43,7 +43,7 @@ func (cmd *Del)Run(args []string) int {
statusCode = 1 statusCode = 1
} else { } else {
if resp.IsSuccess() { if resp.IsSuccess() {
u.Println("Template \""+id+"\" deleted.") u.Println("Template "+id+" deleted.")
} else { } else {
u.PrintlnErr("Error: "+resp.Status()+": "+resp.String()) u.PrintlnErr("Error: "+resp.Status()+": "+resp.String())
statusCode = 1 statusCode = 1
......
...@@ -107,7 +107,7 @@ func printFilteredVMs(c cmd.Command, args []string, route string) int { ...@@ -107,7 +107,7 @@ func printFilteredVMs(c cmd.Command, args []string, route string) int {
if foundLongOutputFlag >= 0 { if foundLongOutputFlag >= 0 {
u.Println(vm.String()) u.Println(vm.String())
} else { } else {
u.Println(vm.Name+" ("+vm.ID.String()+")") u.Println(vm.Name+" | "+vm.ID.String()+" | "+string(vm.Run.State))
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment