Explorar o código

fix error message parsing for requesting too much memory error (#3963)

Feroze Mohideen %!s(int64=2) %!d(string=hai) anos
pai
achega
5e13f031e5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/porter_app/notifications/porter_error/codes.go

+ 1 - 1
internal/porter_app/notifications/porter_error/codes.go

@@ -84,7 +84,7 @@ func ErrorCode(agentSummary, agentDetail string) PorterErrorCode {
 	}
 
 	// this is often a false alarm. if it is actually blocking deploy, we will get a PorterErrorCode_MemoryLimitExceeded_ScaleUp
-	if strings.Contains(agentSummary, "requested more memory than is available") {
+	if strings.Contains(agentSummary, "requesting more memory than is available") {
 		return PorterErrorCode_Ignorable
 	}