Skip to content

Commit ee5cdd5

Browse files
committed
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.
1 parent 4ddc933 commit ee5cdd5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

server/src/com/cloud/vm/UserVmManagerImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3244,6 +3244,7 @@ protected UserVm createVirtualMachine(DataCenter zone, ServiceOffering serviceOf
32443244
_affinityGroupVMMapDao.updateMap(vm.getId(), affinityGroupIdList);
32453245
}
32463246

3247+
CallContext.current().putContextParameter(VirtualMachine.class, vm.getUuid());
32473248
return vm;
32483249
}
32493250

0 commit comments

Comments
 (0)