We support external storage plugins, e.g., for proprietary
technology, so a "unknown" value here may not actually mean that we
missed anything, so just return the type value 1:1 as fallback, that
gives the user a better idea about such a storage entry.
Reported-by: Joshua Huber <jhuber@blockbridge.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
value = !record || record.get('monhost') ? 'cephfs' : 'pvecephfs';
}
- var schema = PVE.Utils.storageSchema[value];
- if (schema) {
- return schema.name;
- }
- return Proxmox.Utils.unknownText;
+ let schema = PVE.Utils.storageSchema[value];
+ return schema?.name ?? value;
},
format_ha: function(value) {