From 468a6f1be5ed8104277d8e3baea596e46045551c Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@hostsharing.net>
Date: Thu, 28 Jul 2011 19:26:33 +0200
Subject: [PATCH] delete pac users

---
 hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
index f96a02a..16a3be8 100644
--- a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
+++ b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
@@ -68,9 +68,7 @@
 	public <T extends AbstractEntity> Processor createDeleteProcessor(
 			EntityManager em, T entity) throws ProcessorException {
 		Pac pac = (Pac) entity;
-		em.refresh(pac);
 		Hive hive = pac.getHive();
-		UnixUser unixUser = getPacAdminUser(pac);
 		Map<String, String> hiveValues = fillHiveValues(hive);
 		List<Map<String, String>> pacValuesList = fillPacValuesList(hive);
 		WaitingTasksProcessor waitingProcessor = new WaitingTasksProcessor(new CompoundProcessor(
@@ -78,7 +76,7 @@
 				createNetworkInterfacesProc(hiveValues, pacValuesList), 
 				createSudouersProc(hiveValues, pacValuesList), 
 				createProftpdConfProc(hiveValues, pacValuesList)));
-		waitingProcessor.appendProcessor(pac.getHiveName(), createDelUserProc(unixUser.getName()), "remove packet");
+		waitingProcessor.appendProcessor(pac.getHiveName(), createDelUserProc(pac.getName()), "remove packet");
 		return waitingProcessor;
 	}
 

--
Gitblit v1.9.3