add storage property to pillar
This commit is contained in:
parent
61357a596e
commit
b5cded8fe6
@ -101,6 +101,11 @@ public class JsonPillarServlet extends HttpServlet {
|
|||||||
int quota = pacQuota.getQuantity();
|
int quota = pacQuota.getQuantity();
|
||||||
writer.println(" , \"quota\": " + quota);
|
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");
|
final PacComponent pacOffice = pac.getPacComponent("OFFICE");
|
||||||
if (pacOffice != null) {
|
if (pacOffice != null) {
|
||||||
int office = pacOffice.getQuantity();
|
int office = pacOffice.getQuantity();
|
||||||
|
Loading…
Reference in New Issue
Block a user