Closed as not planned
Closed as not planned
Description
I tried to import one of my Keycloak realms. After some initial issues with setting it up I got to this point:
2023/02/24 13:11:33 keycloak importing realm xxx
2023/02/24 13:11:33 keycloak importing... realms
2023/02/24 13:11:57 keycloak done importing realms
2023/02/24 13:11:57 Number of resources for service realms: 451
2023/02/24 13:11:57 Refreshing state... keycloak_openid_client_default_scopes.tfer--openid_client_default_scopes_xxx_impersionation_client
(...snip...)
2023/02/24 13:12:02 Refreshing state... keycloak_openid_client_scope.tfer--openid_client_scope_xxx_web_origins
panic: interface conversion: interface {} is nil, not []interface {}
goroutine 1 [running]:
github.com/GoogleCloudPlatform/terraformer/providers/keycloak.(*RealmGenerator).PostConvertHook(0xc001267560)
/home/runner/work/terraformer/terraformer/providers/keycloak/generator.go:519 +0x38cc
github.com/GoogleCloudPlatform/terraformer/terraformutils.(*ProvidersMapping).CleanupProviders(0xc002421988)
/home/runner/work/terraformer/terraformer/terraformutils/providers_mapping.go:175 +0xb4
github.com/GoogleCloudPlatform/terraformer/cmd.Import({_, _}, {{0xc0006a7440, 0x1, 0x1}, {0x116e9878, 0x0, 0x0}, {0xc00037d4d0, 0x22}, ...}, ...)
/home/runner/work/terraformer/terraformer/cmd/import.go:110 +0x332
github.com/GoogleCloudPlatform/terraformer/cmd.newCmdKeycloakImporter.func1(0xc00158e2c0?, {0xa3ec1d8?, 0x3?, 0x3?})
/home/runner/work/terraformer/terraformer/cmd/provider_cmd_keycloak.go:72 +0x9f5
github.com/spf13/cobra.(*Command).execute(0xc00158e2c0, {0xc001645aa0, 0x3, 0x3})
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:850 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0xc0010e7600)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:958 +0x39d
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:895
github.com/GoogleCloudPlatform/terraformer/cmd.Execute()
/home/runner/work/terraformer/terraformer/cmd/root.go:36 +0x1e
main.main()
/home/runner/work/terraformer/terraformer/main.go:39 +0x50
terraformer version: v0.8.22
terraform keycloak provider version: 4.1.0
Any hints on that ?