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

BUG: "Endless Drift" when setting template path to start with "/" #699

Closed
GiliFaroEnv0 opened this issue Aug 24, 2023 · 0 comments · Fixed by #700
Closed

BUG: "Endless Drift" when setting template path to start with "/" #699

GiliFaroEnv0 opened this issue Aug 24, 2023 · 0 comments · Fixed by #700
Assignees
Labels
bug Something isn't working

Comments

@GiliFaroEnv0
Copy link
Contributor

Steps to reproduces:

  1. Create a template with path which start with "/"
resource "env0_template" "github_template1" {
  name                                    = "Github Test Templates"
  description                             = "template-1"
  type                                    = "terraform"
  repository                              = data.env0_template.github_template.repository
  github_installation_id                  = data.env0_template.github_template.github_installation_id
  path                                    = "/misc/null-resource". **<<<----------------**
  retries_on_deploy                       = 3
  retry_on_deploy_only_when_matches_regex = "abc"
  retries_on_destroy                      = 1
  terraform_version                       = "0.15.1"
}
  1. plan and apply
  2. changed nothing and plan again and see drift

its caused by the fact that the BE removes the "/" from the start of the path.

suggestion solution:
Ignore '/' from the path in the provider remove it on read

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants