mirror of https://github.com/apache/cloudstack.git
release the nic state
This commit is contained in:
parent
7384d1b97a
commit
dc7de43aff
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue