Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: Do not create "delete" changes for nonexistent outputs #31471

Merged
merged 1 commit into from Aug 3, 2022

Commits on Jul 19, 2022

  1. do not create delete change for nonexistent output

    If there are outputs in configuration, a destroy plan will always contain a "delete" change for each of these outputs.
    
    This leads to meaningless delete changes being present for outputs which were not present in state and therefore cannot be deleted. Since there is a change in the plan, this plan will then be considered applyable, and the user will be presented with text instructing them to apply a plan in which there are no actual changes.
    
    This commit stops the above from happening in the case of root module outputs.
    kmoe committed Jul 19, 2022
    Copy the full SHA
    3081083 View commit details
    Browse the repository at this point in the history