Merge 6c7a26b8be into 55c36d62ff
This commit is contained in:
commit
6c310fa6a1
|
|
@ -127,15 +127,8 @@ class Api {
|
||||||
const systemVersion = await this.getSystemVersion();
|
const systemVersion = await this.getSystemVersion();
|
||||||
const major = await this.getSystemVersionMajor();
|
const major = await this.getSystemVersionMajor();
|
||||||
|
|
||||||
// starting with version 25 the version string no longer contains `-SCALE`
|
// the first SCALE version was Angelfish ALPHA
|
||||||
if (
|
return (systemVersion.v2 && Number(major) >= 20);
|
||||||
systemVersion.v2 &&
|
|
||||||
(systemVersion.v2.toLowerCase().includes("scale") || Number(major) >= 20)
|
|
||||||
) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async getSystemVersionMajorMinor() {
|
async getSystemVersionMajorMinor() {
|
||||||
|
|
|
||||||
|
|
@ -2178,12 +2178,10 @@ class FreeNASSshDriver extends ControllerZfsBaseDriver {
|
||||||
|
|
||||||
async getIsScale() {
|
async getIsScale() {
|
||||||
const systemVersion = await this.getSystemVersion();
|
const systemVersion = await this.getSystemVersion();
|
||||||
|
const major = await this.getSystemVersionMajor();
|
||||||
|
|
||||||
if (systemVersion.v2 && systemVersion.v2.toLowerCase().includes("scale")) {
|
// the first SCALE version was Angelfish ALPHA
|
||||||
return true;
|
return (systemVersion.v2 && Number(major) >= 20);
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async getSystemVersionMajorMinor() {
|
async getSystemVersionMajorMinor() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue