planChecksHaveErrors returns true if plan checks completed with errors or failed.
(info *PlanCheckInfo)
| 490 | |
| 491 | // planChecksHaveErrors returns true if plan checks completed with errors or failed. |
| 492 | func planChecksHaveErrors(info *PlanCheckInfo) bool { |
| 493 | if info == nil { |
| 494 | return false |
| 495 | } |
| 496 | if info.Status == planCheckFailed { |
| 497 | return true |
| 498 | } |
| 499 | if info.Status == planCheckDone && info.Summary != nil && info.Summary.Error > 0 { |
| 500 | return true |
| 501 | } |
| 502 | return false |
| 503 | } |
| 504 | |
| 505 | // buildResourceURL constructs a URL from externalURL and resource name. |
| 506 | func (s *Server) buildResourceURL(resourceName string) string { |