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

Fix: second apply of environment 'without_template_settings' causes r… #510

Merged
merged 1 commit into from
Sep 30, 2022

Conversation

TomerHeber
Copy link
Collaborator

…ecreation

Resolves #507

Solution

Uses CustomizeDiff to avoid forceNew in templateless mode.

if _, ok := d.GetOk("without_template_settings.0"); ok {
return false
}
return true
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the values don't change it ignores the "true" - this is exactly what we want.

Copy link
Contributor

@avnerenv0 avnerenv0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA'd and works perfectly 🤞 🍀

@avnerenv0 avnerenv0 merged commit aec4de6 into main Sep 30, 2022
@avnerenv0 avnerenv0 deleted the fix-without-template-settings-recreation-#507 branch September 30, 2022 11:00
@github-actions github-actions bot added ready to merge PR approved - can be merged once the PR owner is ready and removed pending final review labels Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix provider ready to merge PR approved - can be merged once the PR owner is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Second apply of environment 'without_template_settings' causes recreation
2 participants