fix typo
This commit is contained in:
parent
f87fb5621a
commit
d212922ddc
|
|
@ -1796,7 +1796,7 @@ class FreeNASApiDriver extends CsiBaseDriver {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async removeSnapshotsFromDatatset(datasetName) {
|
async removeSnapshotsFromDataset(datasetName) {
|
||||||
const httpApiClient = await this.getTrueNASHttpApiClient();
|
const httpApiClient = await this.getTrueNASHttpApiClient();
|
||||||
let job_id = await httpApiClient.DatasetDestroySnapshots(datasetName);
|
let job_id = await httpApiClient.DatasetDestroySnapshots(datasetName);
|
||||||
await httpApiClient.CoreWaitForJob(job_id, 30);
|
await httpApiClient.CoreWaitForJob(job_id, 30);
|
||||||
|
|
@ -2581,7 +2581,7 @@ class FreeNASApiDriver extends CsiBaseDriver {
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove snapshots from target
|
// remove snapshots from target
|
||||||
await this.removeSnapshotsFromDatatset(datasetName);
|
await this.removeSnapshotsFromDataset(datasetName);
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
response = await httpApiClient.CloneCreate(
|
response = await httpApiClient.CloneCreate(
|
||||||
|
|
@ -2741,7 +2741,7 @@ class FreeNASApiDriver extends CsiBaseDriver {
|
||||||
);
|
);
|
||||||
|
|
||||||
// remove snapshots from target
|
// remove snapshots from target
|
||||||
await this.removeSnapshotsFromDatatset(datasetName);
|
await this.removeSnapshotsFromDataset(datasetName);
|
||||||
|
|
||||||
// remove snapshot from source
|
// remove snapshot from source
|
||||||
await httpApiClient.SnapshotDelete(fullSnapshotName, {
|
await httpApiClient.SnapshotDelete(fullSnapshotName, {
|
||||||
|
|
@ -4397,7 +4397,7 @@ class FreeNASApiDriver extends CsiBaseDriver {
|
||||||
let containerDataset =
|
let containerDataset =
|
||||||
zb.helpers.extractParentDatasetName(fullSnapshotName);
|
zb.helpers.extractParentDatasetName(fullSnapshotName);
|
||||||
try {
|
try {
|
||||||
await this.removeSnapshotsFromDatatset(containerDataset);
|
await this.removeSnapshotsFromDataset(containerDataset);
|
||||||
await httpApiClient.DatasetDelete(containerDataset);
|
await httpApiClient.DatasetDelete(containerDataset);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (!err.toString().includes("filesystem has children")) {
|
if (!err.toString().includes("filesystem has children")) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue