Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4511,6 +4511,7 @@ public boolean deleteDiskOffering(final DeleteDiskOfferingCmd cmd) {

annotationDao.removeByEntityType(AnnotationService.EntityType.DISK_OFFERING.name(), offering.getUuid());
offering.setState(DiskOffering.State.Inactive);
offering.setRemoved(new java.util.Date());
if (_diskOfferingDao.update(offering.getId(), offering)) {
CallContext.current().setEventDetails("Disk offering id=" + diskOfferingId);
return true;
Expand Down Expand Up @@ -4591,6 +4592,7 @@ public boolean deleteServiceOffering(final DeleteServiceOfferingCmd cmd) {
}
}
offering.setState(ServiceOffering.State.Inactive);
offering.setRemoved(new java.util.Date());
if (_serviceOfferingDao.update(offeringId, offering)) {
CallContext.current().setEventDetails("Service offering id=" + offeringId);
return true;
Expand Down
Loading