rename config option from Attributes to Template
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
parent
e192595e65
commit
61a550c1fe
|
|
@ -361,7 +361,7 @@ class ControllerSynologyDriver extends CsiBaseDriver {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// create lun
|
// create lun
|
||||||
data = Object.assign({}, driver.options.iscsi.lunAttributes, {
|
data = Object.assign({}, driver.options.iscsi.lunTemplate, {
|
||||||
name: iscsiName,
|
name: iscsiName,
|
||||||
location: driver.options.synology.volume,
|
location: driver.options.synology.volume,
|
||||||
size: capacity_bytes,
|
size: capacity_bytes,
|
||||||
|
|
@ -371,7 +371,7 @@ class ControllerSynologyDriver extends CsiBaseDriver {
|
||||||
|
|
||||||
// create target
|
// create target
|
||||||
let iqn = driver.options.iscsi.baseiqn + iscsiName;
|
let iqn = driver.options.iscsi.baseiqn + iscsiName;
|
||||||
data = Object.assign({}, driver.options.iscsi.targetAttributes, {
|
data = Object.assign({}, driver.options.iscsi.targetTemplate, {
|
||||||
name: iscsiName,
|
name: iscsiName,
|
||||||
iqn,
|
iqn,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue