@@ -633,7 +633,7 @@ func (s *DatabaseVmClusterResourceCrud) Update() error {
633633 }
634634 request := oci_database.UpdateVmClusterRequest {}
635635
636- if cloudAutomationUpdateDetails , ok := s .D .GetOkExists ("cloud_automation_update_details" ); ok {
636+ if cloudAutomationUpdateDetails , ok := s .D .GetOkExists ("cloud_automation_update_details" ); ok && s . D . HasChange ( "cloud_automation_update_details" ) { //
637637 if tmpList := cloudAutomationUpdateDetails .([]interface {}); len (tmpList ) > 0 {
638638 fieldKeyFormat := fmt .Sprintf ("%s.%d.%%s" , "cloud_automation_update_details" , 0 )
639639 tmp , err := s .mapToCloudAutomationUpdateDetails (fieldKeyFormat )
@@ -962,7 +962,7 @@ func (s *DatabaseVmClusterResourceCrud) mapToCloudAutomationUpdateDetails(fieldK
962962 }
963963 }
964964
965- if freezePeriod , ok := s .D .GetOkExists (fmt .Sprintf (fieldKeyFormat , "freeze_period" )); ok {
965+ if freezePeriod , ok := s .D .GetOkExists (fmt .Sprintf (fieldKeyFormat , "freeze_period" )); ok && s . D . HasChange ( fmt . Sprintf ( fieldKeyFormat , "freeze_period" )) {
966966 if tmpList := freezePeriod .([]interface {}); len (tmpList ) > 0 {
967967 fieldKeyFormatNextLevel := fmt .Sprintf ("%s.%d.%%s" , fmt .Sprintf (fieldKeyFormat , "freeze_period" ), 0 )
968968 tmp , err := s .mapToCloudAutomationFreezePeriod (fieldKeyFormatNextLevel )
@@ -978,7 +978,7 @@ func (s *DatabaseVmClusterResourceCrud) mapToCloudAutomationUpdateDetails(fieldK
978978 result .IsEarlyAdoptionEnabled = & tmp
979979 }
980980
981- if isFreezePeriodEnabled , ok := s .D .GetOkExists (fmt .Sprintf (fieldKeyFormat , "is_freeze_period_enabled" )); ok {
981+ if isFreezePeriodEnabled , ok := s .D .GetOkExists (fmt .Sprintf (fieldKeyFormat , "is_freeze_period_enabled" )); ok && s . D . HasChange ( fmt . Sprintf ( fieldKeyFormat , "is_freeze_period_enabled" )) {
982982 tmp := isFreezePeriodEnabled .(bool )
983983 result .IsFreezePeriodEnabled = & tmp
984984 }
0 commit comments