mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
volume-upload: tempalates > upload template from local > format dropdown > include OVA, VMDK, BareMetal, TAR, VHDX option.
This commit is contained in:
parent
eb180b131d
commit
573a4b1e43
@ -791,12 +791,10 @@
|
|||||||
description: 'VHD'
|
description: 'VHD'
|
||||||
});
|
});
|
||||||
} else if (args.hypervisor == "VMware") {
|
} else if (args.hypervisor == "VMware") {
|
||||||
/*
|
|
||||||
items.push({
|
items.push({
|
||||||
id: 'OVA',
|
id: 'OVA',
|
||||||
description: 'OVA'
|
description: 'OVA'
|
||||||
});
|
});
|
||||||
*/
|
|
||||||
} else if (args.hypervisor == "KVM") {
|
} else if (args.hypervisor == "KVM") {
|
||||||
items.push({
|
items.push({
|
||||||
id: 'QCOW2',
|
id: 'QCOW2',
|
||||||
@ -810,48 +808,40 @@
|
|||||||
id: 'VHD',
|
id: 'VHD',
|
||||||
description: 'VHD'
|
description: 'VHD'
|
||||||
});
|
});
|
||||||
/*
|
|
||||||
items.push({
|
items.push({
|
||||||
id: 'VMDK',
|
id: 'VMDK',
|
||||||
description: 'VMDK'
|
description: 'VMDK'
|
||||||
});
|
});
|
||||||
*/
|
} else if (args.hypervisor == "BareMetal") {
|
||||||
} else if (args.hypervisor == "BareMetal") {
|
|
||||||
/*
|
|
||||||
items.push({
|
items.push({
|
||||||
id: 'BareMetal',
|
id: 'BareMetal',
|
||||||
description: 'BareMetal'
|
description: 'BareMetal'
|
||||||
});
|
});
|
||||||
*/
|
|
||||||
} else if (args.hypervisor == "Ovm") {
|
} else if (args.hypervisor == "Ovm") {
|
||||||
items.push({
|
items.push({
|
||||||
id: 'RAW',
|
id: 'RAW',
|
||||||
description: 'RAW'
|
description: 'RAW'
|
||||||
});
|
});
|
||||||
} else if (args.hypervisor == "LXC") {
|
} else if (args.hypervisor == "LXC") {
|
||||||
/*
|
|
||||||
items.push({
|
items.push({
|
||||||
id: 'TAR',
|
id: 'TAR',
|
||||||
description: 'TAR'
|
description: 'TAR'
|
||||||
});
|
});
|
||||||
*/
|
|
||||||
} else if (args.hypervisor == "Hyperv") {
|
} else if (args.hypervisor == "Hyperv") {
|
||||||
items.push({
|
items.push({
|
||||||
id: 'VHD',
|
id: 'VHD',
|
||||||
description: 'VHD'
|
description: 'VHD'
|
||||||
});
|
});
|
||||||
/*
|
|
||||||
items.push({
|
items.push({
|
||||||
id: 'VHDX',
|
id: 'VHDX',
|
||||||
description: 'VHDX'
|
description: 'VHDX'
|
||||||
});
|
});
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
args.response.success({
|
args.response.success({
|
||||||
data: items
|
data: items
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
osTypeId: {
|
osTypeId: {
|
||||||
label: 'label.os.type',
|
label: 'label.os.type',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user