proper await

Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
Travis Glenn Hansen 2021-08-06 00:03:22 -06:00
parent b5567bb390
commit 1315937fd8
1 changed files with 6 additions and 6 deletions

View File

@ -304,13 +304,13 @@ class ControllerSynologyDriver extends CsiBaseDriver {
}
break;
case "volume":
let srcLunName = driver.buildIscsiName(
volume_content_source.volume.volume_id
);
src_lun_uuid = await httpClient.GetLunUUIDByName(srcLunName);
existingLun = httpClient.GetLunByName(iscsiName);
existingLun = await httpClient.GetLunByName(iscsiName);
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);
}
break;