Skip to content

Commit 8eebe69

Browse files
committed
fix: change error for redis 8 modules to warning
1 parent 68b55f7 commit 8eebe69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

provider/pro/resource_rediscloud_pro_database.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,8 @@ func validateModulesForRedis8() schema.CustomizeDiffFunc {
10481048
if strings.HasPrefix(version, "8.") {
10491049
moduleSet := modules.(*schema.Set)
10501050
if moduleSet.Len() > 0 {
1051-
return fmt.Errorf(`"modules" cannot be explicitly set for Redis version %s as modules are bundled by default. Remove the "modules" field from your configuration`, version)
1051+
log.Printf("[WARN] Modules are bundled by default in Redis %s. You should remove the modules block as it is deprecated for this version.", version)
1052+
return nil
10521053
}
10531054
}
10541055
}

0 commit comments

Comments
 (0)