delete pac users
This commit is contained in:
parent
8c7363cb14
commit
f8de19dd0d
@ -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);
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user