release the nic state

This commit is contained in:
Alex Huang 2010-12-30 15:19:27 -08:00
parent 7384d1b97a
commit dc7de43aff
1 changed files with 1 additions and 1 deletions

View File

@ -1097,7 +1097,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
nic.setState(Resource.State.Releasing);
_nicDao.update(nic.getId(), nic);
NicProfile profile = new NicProfile(nic, network, null, null);
if (!concierge.release(profile, vmProfile, nic.getReservationId())) {
if (concierge.release(profile, vmProfile, nic.getReservationId())) {
nic.setState(Resource.State.Allocated);
_nicDao.update(nic.getId(), nic);
}