Skip to content

Commit 242b87d

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 863931a commit 242b87d

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
@@ -3247,6 +3247,7 @@ protected UserVm createVirtualMachine(DataCenter zone, ServiceOffering serviceOf
32473247
_affinityGroupVMMapDao.updateMap(vm.getId(), affinityGroupIdList);
32483248
}
32493249

3250+
CallContext.current().putContextParameter(VirtualMachine.class, vm.getUuid());
32503251
return vm;
32513252
}
32523253

0 commit comments

Comments
 (0)