CLOUDSTACK-8816: some of the events do not have resource uuids

uuid is missing in the first event of VM create as the entity is just
created and never put in the Context.
Added the entity uuid to context on successful creation.
This commit is contained in:
Rajani Karuturi 2015-09-18 14:56:02 +05:30
parent 863931a992
commit 242b87dbfb
1 changed files with 1 additions and 0 deletions

View File

@ -3247,6 +3247,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
_affinityGroupVMMapDao.updateMap(vm.getId(), affinityGroupIdList);
}
CallContext.current().putContextParameter(VirtualMachine.class, vm.getUuid());
return vm;
}