Skip to content

Commit

Permalink
Proper fix for 'Provider configuration not present' (Azure#35)
Browse files Browse the repository at this point in the history
* Properly fix 'Provider configuration not present'

Azure#31

My first PR was against the generated file instead of in the generation code itself, someone made me aware I needed to update the generator too.

* Removed extra newlines
  • Loading branch information
EklipZgit authored Oct 1, 2020
1 parent 7091351 commit e75a386
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions templates/main.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@


{{- define "main" -}}
provider "random" {
version = "~> 2.2"
terraform {
required_providers {
random = {
source = "hashicorp/random"
version = "~> 2.2"
}
}
}

resource "random_string" "main" {
Expand Down Expand Up @@ -64,4 +69,4 @@ locals {
{{- end }}
}
}
{{ end }}
{{ end }}

0 comments on commit e75a386

Please sign in to comment.