File tree Expand file tree Collapse file tree
server/src/com/cloud/storage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -618,7 +618,7 @@ public PrimaryDataStoreInfo createPool(CreateStoragePoolCmd cmd) throws Resource
618618 } else {
619619 throw new InvalidParameterValueException ("Missing parameter hypervisor. Hypervisor type is required to create zone wide primary storage." );
620620 }
621- if (hypervisorType != HypervisorType .KVM && hypervisorType != HypervisorType .VMware && hypervisorType != HypervisorType .Any ) {
621+ if (hypervisorType != HypervisorType .KVM && hypervisorType != HypervisorType .VMware && hypervisorType != HypervisorType .Hyperv && hypervisorType != HypervisorType . Any ) {
622622 throw new InvalidParameterValueException ("zone wide storage pool is not supported for hypervisor type " + hypervisor );
623623 }
624624 }
Original file line number Diff line number Diff line change 1513115131 id: 'VMware',
1513215132 description: _l('VMware')
1513315133 });
15134-
15134+ items.push({
15135+ id: 'Hyperv',
15136+ description: _l('Hyperv')
15137+ });
15138+
1513515139 args.response.success({
1513615140 data: items
1513715141 });
Original file line number Diff line number Diff line change 14291429 return ;
14301430 }
14311431
1432- //zone-wide-primary-storage is supported only for KVM and VMWare
1433- if ( selectedHypervisorObj . hypervisortype == "KVM" || selectedHypervisorObj . hypervisortype == "VMware" ) {
1432+ //zone-wide-primary-storage is supported only for KVM and VMWare and Hyperv
1433+ if ( selectedHypervisorObj . hypervisortype == "KVM" || selectedHypervisorObj . hypervisortype == "VMware" || selectedHypervisorObj . hypervisortype == "Hyperv" ) {
14341434 var scope = [ ] ;
14351435 scope . push ( {
14361436 id : 'zone' ,
You can’t perform that action at this time.
0 commit comments