bug 8677 , 8673 : listIsos - make the parameter - name work properly.

status 8677 , 8673: resolved fixed
This commit is contained in:
nit 2011-06-09 16:30:08 +05:30 committed by Nitin
parent b7f16b8b34
commit e910e513c9
2 changed files with 3 additions and 0 deletions

View File

@ -227,6 +227,7 @@ public abstract class TemplateAdapterBase implements TemplateAdapter {
}
Long id = _tmpltDao.getNextInSequence(Long.class, "id");
UserContext.current().setEventDetails("Id: " +id+ " name: " + name);
return new TemplateProfile(id, userId, name, displayText, bits, passwordEnabled, requiresHVM, url, isPublic,
featured, isExtractable, imgfmt, guestOSId, zoneId, hypervisorType, accountName, domainId, accountId, chksum, true);
}

View File

@ -180,6 +180,7 @@ public class TemplateManagerImpl implements TemplateManager, Manager, TemplateSe
}
@Override
@ActionEvent(eventType = EventTypes.EVENT_ISO_CREATE, eventDescription = "creating iso")
public VirtualMachineTemplate registerIso(RegisterIsoCmd cmd) throws ResourceAllocationException{
TemplateAdapter adapter = getAdapter(HypervisorType.None);
TemplateProfile profile = adapter.prepare(cmd);
@ -187,6 +188,7 @@ public class TemplateManagerImpl implements TemplateManager, Manager, TemplateSe
}
@Override
@ActionEvent(eventType = EventTypes.EVENT_TEMPLATE_CREATE, eventDescription = "creating template")
public VirtualMachineTemplate registerTemplate(RegisterTemplateCmd cmd) throws URISyntaxException, ResourceAllocationException{
TemplateAdapter adapter = getAdapter(HypervisorType.getType(cmd.getHypervisor()));
TemplateProfile profile = adapter.prepare(cmd);