Create event TEMPLATE_UPDATE for virtual machine image update calls. (#6521)

* Create event TEMPLATE_UPDATE for virtual machine image update calls.

(cherry picked from commit e7eec8d0daf5c3d0d5d7c636504f963094788311)

* Added ISO.UPDATE event for update ISO command.

(cherry picked from commit 277f76f398e089af1795d0a3e75749d9a475cae0)

Co-authored-by: Maxim Prokopchuk <mprokopchuk@apple.com>
This commit is contained in:
mprokopchuk 2022-07-05 01:41:02 -07:00 committed by GitHub
parent a470f3353a
commit aa7dd309db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -285,6 +285,7 @@ public class EventTypes {
// ISO
public static final String EVENT_ISO_CREATE = "ISO.CREATE";
public static final String EVENT_ISO_UPDATE = "ISO.UPDATE";
public static final String EVENT_ISO_DELETE = "ISO.DELETE";
public static final String EVENT_ISO_COPY = "ISO.COPY";
public static final String EVENT_ISO_ATTACH = "ISO.ATTACH";

View File

@ -2027,11 +2027,13 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager,
}
@Override
@ActionEvent(eventType = EventTypes.EVENT_ISO_UPDATE, eventDescription = "updating iso", async = false)
public VMTemplateVO updateTemplate(UpdateIsoCmd cmd) {
return updateTemplateOrIso(cmd);
}
@Override
@ActionEvent(eventType = EventTypes.EVENT_TEMPLATE_UPDATE, eventDescription = "updating template", async = false)
public VMTemplateVO updateTemplate(UpdateTemplateCmd cmd) {
return updateTemplateOrIso(cmd);
}