fix: support TrueNAS Community edition in platform check

This commit is contained in:
Yornik Heyl 2025-04-14 21:06:49 +02:00
parent 8193b689ed
commit 86b8427a35
1 changed files with 7 additions and 3 deletions

View File

@ -2167,7 +2167,11 @@ class FreeNASSshDriver extends ControllerZfsBaseDriver {
async getIsScale() {
const systemVersion = await this.getSystemVersion();
if (systemVersion.v2 && systemVersion.v2.toLowerCase().includes("scale")) {
if (
systemVersion.v2 &&
(systemVersion.v2.toLowerCase().includes("scale") ||
systemVersion.v2.toLowerCase().includes("community"))
) {
return true;
}