> +setStorageFormats: function(types) {
> + /*jslint confusion: true*/
> + // format/select are functions elsewhere
> + var me = this;
> + var type,sf;
> + me.storageformats = {};
> + for (type in types) {
> + if (types.hasOwnProperty(type)) {
> + var
On 07/19/2017 03:45 PM, Dominik Csapak wrote:
> we parse and save the storage type infos in PVE.Utils.storageformats
> and can get them with PVE.Utils.getStorageFormat(type)
> so that we do not have to hardcode the values
Thank you for bringing this forward, especially the refactoring in the
new D
we parse and save the storage type infos in PVE.Utils.storageformats
and can get them with PVE.Utils.getStorageFormat(type)
so that we do not have to hardcode the values
the returned object contains:
* an array formats, which contains the file/volume formats, e.g. raw,
qcow2, vmdk
* a default