mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	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:
		
							parent
							
								
									a470f3353a
								
							
						
					
					
						commit
						aa7dd309db
					
				| @ -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"; | ||||
|  | ||||
| @ -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); | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user