You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.Printf("[DEBUG] Read enable_default_user for region %s: region=%v, global=%v", region, regionEnableDefaultUser, globalEnableDefaultUser)
685
+
log.Printf("[DEBUG] ========== Read: Processing enable_default_user for region %s ==========", region)
686
+
log.Printf("[DEBUG] Read: API returned - region.enable_default_user=%v, global_enable_default_user=%v", regionEnableDefaultUser, globalEnableDefaultUser)
685
687
686
688
// Detect operation mode to determine how to handle enable_default_user
log.Printf("[DEBUG] Read: Decision - INCLUDE field (not in config but API has override: region=%v != global=%v)", regionEnableDefaultUser, globalEnableDefaultUser)
704
710
} else {
705
711
shouldInclude=false
706
712
reason="not in config and matches global (inherited)"
713
+
log.Printf("[DEBUG] Read: Decision - EXCLUDE field (not in config, region matches global: both=%v)", regionEnableDefaultUser)
707
714
}
708
715
709
716
casereadModeRefresh, readModeImport:
710
717
// Refresh/Import mode: Check if was in actual persisted state
reason="not in state but differs from global (API override)"
729
+
log.Printf("[DEBUG] Read: Decision - INCLUDE field (not in state but API has override: region=%v != global=%v)", regionEnableDefaultUser, globalEnableDefaultUser)
720
730
} else {
721
731
shouldInclude=false
722
732
reason="not in state and matches global (inherited)"
733
+
log.Printf("[DEBUG] Read: Decision - EXCLUDE field (not in state, region matches global: both=%v)", regionEnableDefaultUser)
723
734
}
724
735
}
725
736
726
-
log.Printf("[DEBUG] enable_default_user decision for region %s: shouldInclude=%v, reason=%s", region, shouldInclude, reason)
737
+
log.Printf("[DEBUG] Read: FINAL DECISION for region %s: shouldInclude=%v, reason=%s", region, shouldInclude, reason)
log.Printf("[DEBUG] Update: Sending enable_default_user=%v for region %s (explicitly set)", val, regionName)
877
+
log.Printf("[DEBUG] Update: Region %s - Sending enable_default_user=%v to API (explicitly set in config)", regionName, val)
878
+
} else {
879
+
log.Printf("[DEBUG] Update: Region %s - Field marked as explicit but not found in dbRegion map (exists=%v, val=%v)", regionName, exists, val)
860
880
}
861
881
} else {
862
882
// Not explicitly set - don't send field, API will use global
863
-
log.Printf("[DEBUG] Update: NOT sending enable_default_user for region %s (inherits from global)", regionName)
883
+
log.Printf("[DEBUG] Update: Region %s - NOT sending enable_default_user field to API (inherits from global=%v)", regionName, d.Get("global_enable_default_user").(bool))
864
884
}
865
885
866
886
iflen(overrideAlerts) >0 {
@@ -891,6 +911,13 @@ func resourceRedisCloudActiveActiveDatabaseUpdate(ctx context.Context, d *schema
0 commit comments