Skip to content

Commit f8901c2

Browse files
author
Seung Yeon Joo
committed
Fixing Lint Check
Signed-off-by: Seung Yeon Joo <[email protected]>
1 parent 974de6b commit f8901c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/org/opensearch/indexmanagement/indexstatemanagement/step/restore/AttemptRestoreStep.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class AttemptRestoreStep(private val action: ConvertIndexToRemoteAction) : Step(
103103
stepStatus = StepStatus.COMPLETED
104104
mutableInfo["message"] = getSuccessMessage(indexName)
105105
} else {
106-
performRestore(context, indexName, remoteIndexName, repository, snapshotName, mutableInfo)
106+
performRestore(context, indexName, repository, snapshotName, mutableInfo)
107107
}
108108
info = mutableInfo.toMap()
109109
} catch (e: RemoteTransportException) {
@@ -136,11 +136,11 @@ class AttemptRestoreStep(private val action: ConvertIndexToRemoteAction) : Step(
136136
private suspend fun performRestore(
137137
context: StepContext,
138138
indexName: String,
139-
remoteIndexName: String,
140139
repository: String,
141140
snapshotName: String?,
142141
mutableInfo: MutableMap<String, Any>,
143142
) {
143+
val remoteIndexName = "${indexName}_remote"
144144
// Proceed with the restore operation
145145
val restoreSnapshotRequest = RestoreSnapshotRequest(repository, snapshotName)
146146
.indices(indexName)

0 commit comments

Comments
 (0)