Skip to content

Commit b1bff45

Browse files
committed
fix: fix resource update function
1 parent 0a4163e commit b1bff45

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/service/route53recoverycontrolconfig/safety_rule.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ func updateAssertionRule(ctx context.Context, d *schema.ResourceData, meta any)
352352
}
353353
}
354354

355-
return append(diags, sdkdiag.WrapDiagsf(resourceControlPanelRead(ctx, d, meta), "updating Route53 Recovery Control Config Assertion Rule")...)
355+
return append(diags, sdkdiag.WrapDiagsf(resourceSafetyRuleRead(ctx, d, meta), "updating Route53 Recovery Control Config Assertion Rule")...)
356356
}
357357

358358
func updateGatingRule(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics {
@@ -383,7 +383,7 @@ func updateGatingRule(ctx context.Context, d *schema.ResourceData, meta any) dia
383383
}
384384
}
385385

386-
return append(diags, sdkdiag.WrapDiagsf(resourceControlPanelRead(ctx, d, meta), "updating Route53 Recovery Control Config Gating Rule")...)
386+
return append(diags, sdkdiag.WrapDiagsf(resourceSafetyRuleRead(ctx, d, meta), "updating Route53 Recovery Control Config Gating Rule")...)
387387
}
388388
func findSafetyRuleByARN(ctx context.Context, conn *r53rcc.Client, arn string) (*r53rcc.DescribeSafetyRuleOutput, error) {
389389
input := &r53rcc.DescribeSafetyRuleInput{

internal/service/route53recoverycontrolconfig/safety_rule_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func testAccSafetyRule_tags(t *testing.T) {
164164
),
165165
},
166166
{
167-
Config: testAccSafetyRuleConfig_routingControl_tags1(rName, acctest.CtKey2, acctest.CtValue1Updated),
167+
Config: testAccSafetyRuleConfig_routingControl_tags1(rName, acctest.CtKey2, acctest.CtValue2),
168168
Check: resource.ComposeTestCheckFunc(
169169
testAccCheckSafetyRuleExists(ctx, resourceName),
170170
resource.TestCheckResourceAttr(resourceName, names.AttrName, rName),

0 commit comments

Comments
 (0)