mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	bug 8677 , 8673 : listIsos - make the parameter - name work properly.
status 8677 , 8673: resolved fixed
This commit is contained in:
		
							parent
							
								
									8e4ec4ce09
								
							
						
					
					
						commit
						a9ccd0d51f
					
				@ -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);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
@ -53,6 +53,7 @@ import com.cloud.dc.DataCenter;
 | 
			
		||||
import com.cloud.dc.DataCenterVO;
 | 
			
		||||
import com.cloud.dc.dao.DataCenterDao;
 | 
			
		||||
import com.cloud.domain.dao.DomainDao;
 | 
			
		||||
import com.cloud.event.ActionEvent;
 | 
			
		||||
import com.cloud.event.EventTypes;
 | 
			
		||||
import com.cloud.event.UsageEventVO;
 | 
			
		||||
import com.cloud.event.dao.EventDao;
 | 
			
		||||
@ -180,6 +181,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 +189,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);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user