Skip to content

Commit 736812f

Browse files
committed
Fix - opensearch reindexing issue with prefix
1 parent cbe2f82 commit 736812f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

db-connector.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6460,7 +6460,6 @@ func GetEnvironments(ctx context.Context, orgId string) ([]Environment, error) {
64606460

64616461
licenseOrg := HandleCheckLicense(ctx, *parentOrg)
64626462
multiEnvLimit = int(licenseOrg.SyncFeatures.MultiEnv.Limit)
6463-
log.Printf("multiEnvLimit is: %d", multiEnvLimit)
64646463
if !licenseOrg.SyncFeatures.MultiEnv.Active && int64(len(environments)) > int64(multiEnvLimit) {
64656464
hideEnvs = true
64666465
}
@@ -17618,7 +17617,7 @@ func InitOpensearchIndexes() {
1761817617

1761917618
}
1762017619

17621-
index = strings.ToLower(GetESIndexPrefix(index))
17620+
index = strings.ToLower(index)
1762217621
// Directly try to force create it. Opensearch throws a 400 if it fails.
1762317622

1762417623
initialIndexName := fmt.Sprintf("%s-000001", index)

0 commit comments

Comments
 (0)