Skip to content

Commit

Permalink
fix: add online\offline status to output of list blades (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-howe-1 authored Oct 18, 2024
1 parent 3d565a4 commit 2a3c677
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/pkg/serviceLib/serviceRequests/blades.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ func (r *ServiceRequestListBlades) Execute() (*serviceWrap.ApplianceBladeSummary

func (r *ServiceRequestListBlades) OutputResults(s *serviceWrap.ApplianceBladeSummary) {

fmt.Printf("\n%-25s %-15s %-20s %-25s\n", "Appliance ID", "Blade ID", "Free Memory (MiB)", "Composed Memory (MiB)")
fmt.Printf("%s %s %s %s\n", strings.Repeat("-", 25), strings.Repeat("-", 15), strings.Repeat("-", 20), strings.Repeat("-", 25))
fmt.Printf("\n%-25s %-15s %-20s %-25s %-10s\n", "Appliance ID", "Blade ID", "Free Memory (MiB)", "Composed Memory (MiB)", "Status")
fmt.Printf("%s %s %s %s %s\n", strings.Repeat("-", 25), strings.Repeat("-", 15), strings.Repeat("-", 20), strings.Repeat("-", 25), strings.Repeat("-", 10))
if len(s.ApplToBladeMap) == 0 {
fmt.Printf("\nNo Appliances found\n\n")
return
Expand All @@ -173,7 +173,7 @@ func (r *ServiceRequestListBlades) OutputResults(s *serviceWrap.ApplianceBladeSu
continue
}
for _, blade := range *blades {
fmt.Printf("%-25s %-15s %-20d %-25d\n", applId, blade.GetId(), blade.GetTotalMemoryAvailableMiB(), blade.GetTotalMemoryAllocatedMiB())
fmt.Printf("%-25s %-15s %-20d %-25d %-10s\n", applId, blade.GetId(), blade.GetTotalMemoryAvailableMiB(), blade.GetTotalMemoryAllocatedMiB(), blade.GetStatus())
}
}

Expand Down

0 comments on commit 2a3c677

Please sign in to comment.