Skip to content

Commit

Permalink
skaff: skip tftags import when --include-tags is false
Browse files Browse the repository at this point in the history
  • Loading branch information
jar-b committed Aug 10, 2023
1 parent e74b081 commit becf973
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skaff/datasource/datasource.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ import (
"github.com/hashicorp/terraform-provider-aws/internal/conns"
"github.com/hashicorp/terraform-provider-aws/internal/create"
"github.com/hashicorp/terraform-provider-aws/internal/flex"
{{- if .IncludeTags }}
tftags "github.com/hashicorp/terraform-provider-aws/internal/tags"
{{- end }}
"github.com/hashicorp/terraform-provider-aws/internal/tfresource"
"github.com/hashicorp/terraform-provider-aws/internal/verify"
"github.com/hashicorp/terraform-provider-aws/names"
Expand Down
2 changes: 2 additions & 0 deletions skaff/datasource/datasourcefw.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ import (
"github.com/hashicorp/terraform-provider-aws/internal/create"
"github.com/hashicorp/terraform-provider-aws/internal/framework"
"github.com/hashicorp/terraform-provider-aws/internal/framework/flex"
{{- if .IncludeTags }}
tftags "github.com/hashicorp/terraform-provider-aws/internal/tags"
{{- end }}
"github.com/hashicorp/terraform-provider-aws/names"
)
{{ if .IncludeComments }}
Expand Down
2 changes: 2 additions & 0 deletions skaff/resource/resource.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ import (
"github.com/hashicorp/terraform-provider-aws/internal/create"
"github.com/hashicorp/terraform-provider-aws/internal/errs"
"github.com/hashicorp/terraform-provider-aws/internal/flex"
{{- if .IncludeTags }}
tftags "github.com/hashicorp/terraform-provider-aws/internal/tags"
{{- end }}
"github.com/hashicorp/terraform-provider-aws/internal/tfresource"
"github.com/hashicorp/terraform-provider-aws/internal/verify"
"github.com/hashicorp/terraform-provider-aws/names"
Expand Down
2 changes: 2 additions & 0 deletions skaff/resource/resourcefw.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ import (
"github.com/hashicorp/terraform-provider-aws/internal/create"
"github.com/hashicorp/terraform-provider-aws/internal/framework"
"github.com/hashicorp/terraform-provider-aws/internal/framework/flex"
{{- if .IncludeTags }}
tftags "github.com/hashicorp/terraform-provider-aws/internal/tags"
{{- end }}
"github.com/hashicorp/terraform-provider-aws/internal/tfresource"
"github.com/hashicorp/terraform-provider-aws/names"
)
Expand Down

0 comments on commit becf973

Please sign in to comment.