proper await
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
parent
b5567bb390
commit
1315937fd8
|
|
@ -304,13 +304,13 @@ class ControllerSynologyDriver extends CsiBaseDriver {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "volume":
|
case "volume":
|
||||||
let srcLunName = driver.buildIscsiName(
|
existingLun = await httpClient.GetLunByName(iscsiName);
|
||||||
volume_content_source.volume.volume_id
|
|
||||||
);
|
|
||||||
src_lun_uuid = await httpClient.GetLunUUIDByName(srcLunName);
|
|
||||||
|
|
||||||
existingLun = httpClient.GetLunByName(iscsiName);
|
|
||||||
if (!existingLun) {
|
if (!existingLun) {
|
||||||
|
let srcLunName = driver.buildIscsiName(
|
||||||
|
volume_content_source.volume.volume_id
|
||||||
|
);
|
||||||
|
|
||||||
|
src_lun_uuid = await httpClient.GetLunUUIDByName(srcLunName);
|
||||||
await httpClient.CreateClonedVolume(src_lun_uuid, iscsiName);
|
await httpClient.CreateClonedVolume(src_lun_uuid, iscsiName);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue