MCPcopy
hub / github.com/cloudfoundry/cli / shouldShowCurrentScale

Function shouldShowCurrentScale

command/v7/scale_command.go:196–206  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

194}
195
196func shouldShowCurrentScale(err error) bool {
197 if err == nil {
198 return true
199 }
200
201 if _, ok := err.(actionerror.AllInstancesCrashedError); ok {
202 return true
203 }
204
205 return false
206}
207
208func (cmd ScaleCommand) shouldRestart() bool {
209 return cmd.DiskLimit.IsSet || cmd.MemoryLimit.IsSet || cmd.LogRateLimit.IsSet

Callers 1

showCurrentScaleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected