Skip to content

Commit

Permalink
fix: autoscale cpu trigger info
Browse files Browse the repository at this point in the history
  • Loading branch information
crgisch committed Nov 22, 2023
1 parent f2efa0a commit 815abcc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tsuru/client/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -762,10 +762,13 @@ func (a *app) String(simplified bool) string {
"Trigger details",
})

autoScaleTable.AddRow(tablecli.Row([]string{
"CPU",
"Target: 20%",
}))
if as.AverageCPU != "" {
cpu := cpuValue(as.AverageCPU)
autoScaleTable.AddRow(tablecli.Row([]string{
"CPU",
fmt.Sprintf("Target: %s", cpu),
}))
}

for _, schedule := range as.Schedules {

Check failure on line 773 in tsuru/client/apps.go

View workflow job for this annotation

GitHub Actions / lint

as.Schedules undefined (type tsuru.AutoScaleSpec has no field or method Schedules)

Check failure on line 773 in tsuru/client/apps.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

as.Schedules undefined (type tsuru.AutoScaleSpec has no field or method Schedules)

Check failure on line 773 in tsuru/client/apps.go

View workflow job for this annotation

GitHub Actions / test (macOS-latest)

as.Schedules undefined (type tsuru.AutoScaleSpec has no field or method Schedules)
scheduleInfo := buildScheduleInfo(schedule)
Expand Down

0 comments on commit 815abcc

Please sign in to comment.