From 0f30b0d46c44d7641b4a7de6e5f3463ba2d3a6c1 Mon Sep 17 00:00:00 2001 From: Nitin Mehta Date: Tue, 31 Jan 2012 22:05:54 +0530 Subject: [PATCH] Bug 13389: updatetemplate- Add the identity mapper for guest os id param. Reviewed-By: Kishan --- api/src/com/cloud/api/commands/UpdateTemplateOrIsoCmd.java | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/com/cloud/api/commands/UpdateTemplateOrIsoCmd.java b/api/src/com/cloud/api/commands/UpdateTemplateOrIsoCmd.java index 7b50df7bb23..2910fd1b2d4 100755 --- a/api/src/com/cloud/api/commands/UpdateTemplateOrIsoCmd.java +++ b/api/src/com/cloud/api/commands/UpdateTemplateOrIsoCmd.java @@ -46,6 +46,7 @@ public abstract class UpdateTemplateOrIsoCmd extends BaseCmd { @Parameter(name=ApiConstants.NAME, type=CommandType.STRING, description="the name of the image file") private String templateName; + @IdentityMapper(entityTableName="guest_os") @Parameter(name=ApiConstants.OS_TYPE_ID, type=CommandType.LONG, description="the ID of the OS type that best represents the OS of this image.") private Long osTypeId;