mirror of
https://github.com/democratic-csi/democratic-csi.git
synced 2026-10-07 20:47:48 +02:00
better handling of extentAvailThreshold
This commit is contained in:
@@ -295,12 +295,16 @@ class FreeNASDriver extends ControllerZfsSshBaseDriver {
|
||||
? this.options.iscsi.extentRpm
|
||||
: "SSD";
|
||||
|
||||
const extentAvailThreshold = this.options.iscsi.hasOwnProperty(
|
||||
let extentAvailThreshold = this.options.iscsi.hasOwnProperty(
|
||||
"extentAvailThreshold"
|
||||
)
|
||||
? this.options.iscsi.extentAvailThreshold
|
||||
? Number(this.options.iscsi.extentAvailThreshold)
|
||||
: null;
|
||||
|
||||
if (!(extentAvailThreshold > 0 && extentAvailThreshold <= 100)) {
|
||||
extentAvailThreshold = null;
|
||||
}
|
||||
|
||||
switch (apiVersion) {
|
||||
case 1: {
|
||||
response = await httpClient.get(
|
||||
|
||||
Reference in New Issue
Block a user