2
0
Эх сурвалжийг харах

fix: add missing case for elasticache-redis to datastore status handler (#4058)

jose-fully-ported 2 жил өмнө
parent
commit
3a4e02e8a1

+ 2 - 0
api/server/handlers/datastore/status.go

@@ -69,6 +69,8 @@ func (h *StatusHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 		datastoreType = porterv1.EnumDatastore_ENUM_DATASTORE_RDS_POSTGRESQL
 	case "rds-postgresql-aurora":
 		datastoreType = porterv1.EnumDatastore_ENUM_DATASTORE_RDS_AURORA_POSTGRESQL
+	case "elasticache-redis":
+		datastoreType = porterv1.EnumDatastore_ENUM_DATASTORE_ELASTICACHE_REDIS
 	default:
 		err := telemetry.Error(ctx, span, nil, "invalid datastore specified")
 		h.HandleAPIError(w, r, apierrors.NewErrPassThroughToClient(err, http.StatusBadRequest))