set guid to null when delete secondary storage

This commit is contained in:
anthony 2010-11-04 20:41:13 -07:00
parent 861b8f76ae
commit bd4f3bfaa0
1 changed files with 2 additions and 0 deletions

View File

@ -769,6 +769,8 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory {
handleDisconnect(attache, Status.Event.Remove, false);
//now delete the host
secStorageHost.setGuid(null);
_hostDao.update(secStorageHost.getId(), secStorageHost);
_hostDao.remove(secStorageHost.getId());
//delete the templates associated with this host