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

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

diff --git a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
index 456f22e..c6dd4fd 100644
--- a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
+++ b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
@@ -163,14 +163,14 @@
 		return hiveValues;
 	}
 
-	private List<Map<String, String>> fillPacValuesList(Hive hive, Pac pac) {
+	private List<Map<String, String>> fillPacValuesList(Hive hive, Pac pacToSkip) {
 		List<Map<String, String>> pacValuesList = new ArrayList<Map<String, String>>();
 		Set<Pac> pacsSet = hive.getPacs();
 		for (Pac p : pacsSet) {
 			HashMap<String, String> pacValues = new HashMap<String, String>();
 			pacValues.put("PAC", p.getName());
 			pacValues.put("PAC_IP", p.getCurINetAddr().getInetAddr());
-			if (pac == null || pac.getId() != p.getId()) {
+			if (pacToSkip == null || !pacToSkip.getName().equals(p.getName())) {
 				pacValuesList.add(pacValues);
 			}
 		}

--
Gitblit v1.9.0-SNAPSHOT