diff --git a/cmd/import.go b/cmd/import.go index 67e777536..4bbe83448 100644 --- a/cmd/import.go +++ b/cmd/import.go @@ -124,7 +124,7 @@ func initOptionsAndWrapper(provider terraformutils.ProviderGenerator, options Im options.Resources = providerServices(provider) } - if options.Excludes != nil { + if len(options.Excludes) > 0 { localSlice := []string{} for _, r := range options.Resources { remove := false