Skip to content

Commit

Permalink
core: fix cache_status_endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
younesschrifi committed Jun 1, 2023
1 parent c5cfe24 commit c2f3216
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public Response act(Request req) throws IOException {
if (infra != null) {
var request = adapterRequest.fromJson(body);
var infraCacheEntry = infraManager.getInfraCache(request.infra);
res.put(request.infra, SerializedInfraCache.from(infraCacheEntry));
if (infraCacheEntry != null)
res.put(request.infra, SerializedInfraCache.from(infraCacheEntry));
} else {
infraManager.forEach((infraId, infraCacheEntry) -> {
res.put(infraId, SerializedInfraCache.from(infraCacheEntry));
Expand Down

0 comments on commit c2f3216

Please sign in to comment.