fix list of pac-domains

This commit is contained in:
Peter Hormanns 2019-06-18 19:30:34 +02:00
parent 9493c780f4
commit 5dae0e3353
2 changed files with 8 additions and 2 deletions

View File

@ -123,7 +123,10 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
final List<?> pacsList = pacsQuery.getResultList(); final List<?> pacsList = pacsQuery.getResultList();
for (final Object obj : pacsList) { for (final Object obj : pacsList) {
if (obj instanceof Pac) { if (obj instanceof Pac) {
domsNames.add(((Pac) obj).getName() + ".hostsharing.net"); final Pac p = (Pac) obj;
if ("PAC/WEB".equals(p.getBasepac().getName())) {
domsNames.add(p.getName() + ".hostsharing.net");
}
} }
} }
final Map<String, Object> namedZonesTemplateVars = new HashMap<String, Object>(); final Map<String, Object> namedZonesTemplateVars = new HashMap<String, Object>();

View File

@ -169,7 +169,10 @@ public class PacProcessorFactory implements EntityProcessorFactory {
final List<?> pacsList = pacsQuery.getResultList(); final List<?> pacsList = pacsQuery.getResultList();
for (final Object obj : pacsList) { for (final Object obj : pacsList) {
if (obj instanceof Pac) { if (obj instanceof Pac) {
domsNames.add(((Pac) obj).getName() + ".hostsharing.net"); final Pac p = (Pac) obj;
if ("PAC/WEB".equals(p.getBasepac().getName())) {
domsNames.add(p.getName() + ".hostsharing.net");
}
} }
} }
final Map<String, Object> namedZonesTemplateVars = new HashMap<String, Object>(); final Map<String, Object> namedZonesTemplateVars = new HashMap<String, Object>();