RegisterTemplateCommand - ignore case in "hypervisor" parameter value - used to complain when "xen" was specified instead of "Xen"

This commit is contained in:
alena 2010-11-19 16:24:40 -08:00
parent acbb26a746
commit e1b74ea99e
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ public class TemplateManagerImpl implements TemplateManager {
String format = cmd.getFormat();
Long guestOSId = cmd.getOsTypeId();
Long zoneId = cmd.getZoneId();
HypervisorType hypervisorType = HypervisorType.valueOf(cmd.getHypervisor());
HypervisorType hypervisorType = HypervisorType.getType(cmd.getHypervisor());
String accountName = cmd.getAccountName();
Long domainId = cmd.getDomainId();
Account resourceAccount = null;