add storage property to pillar

This commit is contained in:
Peter Hormanns 2021-08-13 12:50:11 +02:00
parent 61357a596e
commit b5cded8fe6

View File

@ -101,6 +101,11 @@ public class JsonPillarServlet extends HttpServlet {
int quota = pacQuota.getQuantity();
writer.println(" , \"quota\": " + quota);
}
final PacComponent pacStorage = pac.getPacComponent("STORAGE");
if (pacStorage != null) {
int storage = pacStorage.getQuantity();
writer.println(" , \"storage\": " + storage);
}
final PacComponent pacOffice = pac.getPacComponent("OFFICE");
if (pacOffice != null) {
int office = pacOffice.getQuantity();