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

Cloudflare provider having issues #154

Closed
adampetrovic opened this issue Jul 29, 2019 · 0 comments
Closed

Cloudflare provider having issues #154

adampetrovic opened this issue Jul 29, 2019 · 0 comments

Comments

@adampetrovic
Copy link

I've redacted my personal details.

I get the following error when running terraformer import cloudflare --resources=dns

2019/07/29 13:14:14 Refreshing state... cloudflare_record.MX_mydomain--com--au_<hash_id>
panic: interface conversion: interface {} is nil, not string

goroutine 1 [running]:
github.com/GoogleCloudPlatform/terraformer/providers/cloudflare.(*DNSGenerator).PostConvertHook(0xc000168190, 0x3f44ec0, 0xc000168190)
	/Users/apetrovic/code/terraformer/providers/cloudflare/dns.go:118 +0x485
github.com/GoogleCloudPlatform/terraformer/cmd.Import(0x3f3e9c0, 0xc0000cde20, 0xc0004ae970, 0x1, 0x1, 0x3a079a8, 0x1e, 0x39d4638, 0x9, 0x39cdf5f, ...)
	/Users/apetrovic/code/terraformer/cmd/import.go:106 +0x23c
github.com/GoogleCloudPlatform/terraformer/cmd.newCmdCloudflareImporter.func1(0xc0003be280, 0xc0004ae950, 0x0, 0x1, 0x0, 0x0)
	/Users/apetrovic/code/terraformer/cmd/cloudflare.go:30 +0xe4
github.com/spf13/cobra.(*Command).execute(0xc0003be280, 0xc0004ae930, 0x1, 0x1, 0xc0003be280, 0xc0004ae930)
	/Users/apetrovic/code/go/pkg/mod/github.com/spf13/[email protected]/command.go:762 +0x465
github.com/spf13/cobra.(*Command).ExecuteC(0xc00017d900, 0x39cfda3, 0x6, 0xc000541f88)
	/Users/apetrovic/code/go/pkg/mod/github.com/spf13/[email protected]/command.go:852 +0x2ec
github.com/spf13/cobra.(*Command).Execute(...)
	/Users/apetrovic/code/go/pkg/mod/github.com/spf13/[email protected]/command.go:800
github.com/GoogleCloudPlatform/terraformer/cmd.Execute(0x0, 0x0)
	/Users/apetrovic/code/terraformer/cmd/root.go:36 +0x28
main.main()
	/Users/apetrovic/code/terraformer/main.go:25 +0x22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant