add validsubdomains field to pillar

This commit is contained in:
Peter Hormanns 2020-07-03 11:12:50 +02:00
parent 3917038c0e
commit 20e34eba0f

View File

@ -136,6 +136,7 @@ public class JsonPillarServlet extends HttpServlet {
}
final UnixUser domUser = dom.getUser();
final Pac domPac = domUser.getPac();
final String validSubdomainNames = dom.getValidsubdomainnames();
final INetAddress domINetAddr = domPac.getCurINetAddr();
writer.println(" \"domain\": \"" + domName + "\"");
writer.println(" , \"pac\": \"" + domPac.getName() + "\"");
@ -162,6 +163,7 @@ public class JsonPillarServlet extends HttpServlet {
}
}
writer.println(" }");
writer.println(" , \"validsubdomains\": \"" + validSubdomainNames + "\"");
writer.println(" }");
}
writer.println(" ]");