Skip to content

Commit 514ae5a

Browse files
committed
fix: comparison for redis versions works better with helper function (especially for redis 10+)
1 parent e6ca8af commit 514ae5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provider/pro/resource_rediscloud_pro_database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ func resourceRedisCloudProDatabaseRead(ctx context.Context, d *schema.ResourceDa
571571
// For Redis 8.0+, modules are bundled by default and returned by the API
572572
// Only set modules in state if they were explicitly defined in the config
573573
redisVersion := redis.StringValue(db.RedisVersion)
574-
if redisVersion >= "8.0" {
574+
if shouldSuppressModuleDiffsForRedis8(redisVersion) {
575575
// Only set modules if they were explicitly configured by the user
576576
if _, ok := d.GetOk("modules"); ok {
577577
if err := d.Set("modules", FlattenModules(db.Modules)); err != nil {

0 commit comments

Comments
 (0)