From 6ba213537aa0d44a409aac72af7195ac23518ba1 Mon Sep 17 00:00:00 2001 From: Shion Ichikawa Date: Sun, 29 Sep 2024 04:05:19 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20condition=20stmt=20for=20`option?= =?UTF-8?q?s.Excludes`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/import.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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