Преглед на файлове

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

Feroze Mohideen преди 2 години
родител
ревизия
5e13f031e5
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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
 	// 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
 		return PorterErrorCode_Ignorable
 	}
 	}