delete pac users

This commit is contained in:
Peter Hormanns 2011-07-27 17:02:13 +00:00
parent 8c7363cb14
commit f8de19dd0d
2 changed files with 2 additions and 1 deletions

View File

@ -138,6 +138,7 @@ public class PacModuleImpl extends AbstractModuleImpl {
for (UnixUser user : pac.getUnixUser()) { for (UnixUser user : pac.getUnixUser()) {
if (!pacName.equals(user.getName())) { if (!pacName.equals(user.getName())) {
helperModule.delete(user); helperModule.delete(user);
pac.getUnixUser().remove(user);
} }
} }
super.delete(existingEntity); super.delete(existingEntity);

View File

@ -149,7 +149,7 @@ public class PacProcessorFactory implements EntityProcessorFactory {
if (unixUserSet.size() == 1) { if (unixUserSet.size() == 1) {
unixUser = unixUserSet.iterator().next(); unixUser = unixUserSet.iterator().next();
} else { } else {
throw new ProcessorException("package contains users"); throw new ProcessorException("packet contains users");
} }
return unixUser; return unixUser;
} }