Skip to content

Commit

Permalink
fix lifecycle handling
Browse files Browse the repository at this point in the history
  • Loading branch information
VenelinMartinov committed Nov 6, 2024
1 parent 6308d95 commit b00eac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/internal/tests/cross-tests/impl/hclwrite/hclwrite.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func WriteResource(
}
if len(lifecycle) > 0 {
newBlock := block.Body().AppendNewBlock("lifecycle", nil)
writeBlock(newBlock.Body(), &lifecycleBlock{}, config["lifecycle"].AsValueMap())
writeBlock(newBlock.Body(), &lifecycleBlock{}, lifecycle)
}
_, err := f.WriteTo(w)
return err
Expand Down

0 comments on commit b00eac4

Please sign in to comment.