mirror of https://github.com/apache/cloudstack.git
Merge pull request #177 from shapeblue/template-update-event
Create event TEMPLATE_UPDATE for virtual machine image update calls.
This commit is contained in:
commit
6a3e0f7e46
|
|
@ -278,6 +278,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";
|
||||
|
|
|
|||
|
|
@ -2033,11 +2033,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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue