mirror of https://github.com/apache/cloudstack.git
set guid to null when delete secondary storage
This commit is contained in:
parent
861b8f76ae
commit
bd4f3bfaa0
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue