Skip to content

Bug: Empty comment if OpenTofu is used with ephemeral resources #107

@michemache

Description

@michemache

I’ve noticed that when I use OpenTofu with ephemeral resources, the comment field is left empty.

After some analysis, I realised that ephemeral resources are present in the JSON output with OpenTofu but not in the human-readable output.
Consequently, when using OpenTofu, the error Resource '${name}' is modified but cannot be found in human-readable plan. is thrown. However, this is suppressed by a try-catch block in the renderPlan function and results in an empty comment.

I will prepare a PR to fix this behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions