Skip to content

Commit 009f125

Browse files
committed
fix: enable default user drift fix
1 parent 74938ee commit 009f125

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

provider/resource_rediscloud_active_active_database.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,8 @@ func resourceRedisCloudActiveActiveDatabaseRead(ctx context.Context, d *schema.R
639639

640640
regionDbConfig["remote_backup"] = pro.FlattenBackupPlan(regionDb.Backup, getStateRemoteBackup(d, region), "")
641641

642-
// Only set enable_default_user if it was explicitly configured in the override_region
643-
if stateEnableDefaultUser := getStateOverrideRegion(d, region)["enable_default_user"]; stateEnableDefaultUser != nil {
642+
// Only set enable_default_user if it was explicitly configured in the override_region config
643+
if isEnableDefaultUserExplicitlySetInConfig(d, region) {
644644
regionDbConfig["enable_default_user"] = redis.BoolValue(regionDb.Security.EnableDefaultUser)
645645
}
646646

0 commit comments

Comments
 (0)