Skip to content

Commit

Permalink
do not use if
Browse files Browse the repository at this point in the history
  • Loading branch information
rucciva committed Oct 14, 2024
1 parent 2e289bb commit ef469c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/git_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var gitBackendCmd = &cobra.Command{
t, err := template.New(gitHTTPBackendConfigPath).Parse(`
terraform {
backend "http" {
address = "{{ .protocol }}://localhost:{{ .port }}/?type=git&repository={{ .repository }}&ref={{ .ref }}{{ if eq .amend "true" }}&amend=true{{ end }}&state={{ .state }}"
address = "{{ .protocol }}://localhost:{{ .port }}/?type=git&repository={{ .repository }}&ref={{ .ref }}&amend={{ .amend }}&state={{ .state }}"
lock_address = "{{ .protocol }}://localhost:{{ .port }}/?type=git&repository={{ .repository }}&ref={{ .ref }}&state={{ .state }}"
unlock_address = "{{ .protocol }}://localhost:{{ .port }}/?type=git&repository={{ .repository }}&ref={{ .ref }}&state={{ .state }}"
skip_cert_verification = {{ .skipHttpsVerification }}
Expand Down

0 comments on commit ef469c3

Please sign in to comment.