Open rickythain opened 2 months ago
Also getting this trying to import cloudflare records.
panic: interface conversion: interface {} is []interface {}, not map[string]interface {}
goroutine 1 [running]:
github.com/GoogleCloudPlatform/terraformer/providers/cloudflare.(*DNSGenerator).PostConvertHook(0x14001d22240)
github.com/GoogleCloudPlatform/terraformer/providers/cloudflare/dns.go:118 +0x220
github.com/GoogleCloudPlatform/terraformer/terraformutils.(*ProvidersMapping).CleanupProviders(0x14002037a08)
github.com/GoogleCloudPlatform/terraformer/terraformutils/providers_mapping.go:175 +0xa0
github.com/GoogleCloudPlatform/terraformer/cmd.Import({_, _}, {{0x14000379bc0, 0x1, 0x1}, {0x1142f7300, 0x0, 0x0}, {0x10a8963e0, 0x1e}, ...}, ...)
github.com/GoogleCloudPlatform/terraformer/cmd/import.go:110 +0x1f4
github.com/GoogleCloudPlatform/terraformer/cmd.newCmdCloudflareImporter.func1(0x14001225a00?, {0x10a7e95ed?, 0x4?, 0x10a7e95c5?})
github.com/GoogleCloudPlatform/terraformer/cmd/provider_cmd_cloudflare.go:30 +0x80
github.com/spf13/cobra.(*Command).execute(0x14000d21340, {0x14000379800, 0x1, 0x1})
github.com/spf13/cobra@v1.1.1/command.go:850 +0x554
github.com/spf13/cobra.(*Command).ExecuteC(0x14000636580)
github.com/spf13/cobra@v1.1.1/command.go:958 +0x310
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.1.1/command.go:895
github.com/GoogleCloudPlatform/terraformer/cmd.Execute()
github.com/GoogleCloudPlatform/terraformer/cmd/root.go:36 +0x20
main.main()
github.com/GoogleCloudPlatform/terraformer/main.go:39 +0x50
I notice this error was raised previously and seems it has been fixed for ec2_instance resource only.