Remove useless exports in VPC supplier

main
Elie 2021-01-11 18:18:55 +01:00
parent 5da54e7767
commit c457f125e2
No known key found for this signature in database
GPG Key ID: 399AF69092C727B6
1 changed files with 5 additions and 5 deletions

View File

@ -18,10 +18,10 @@ import (
type VPCSupplier struct { type VPCSupplier struct {
reader terraform.ResourceReader reader terraform.ResourceReader
defaultVPCDeserializer deserializer.CTYDeserializer defaultVPCDeserializer deserializer.CTYDeserializer
VPCDeserializer deserializer.CTYDeserializer vpcDeserializer deserializer.CTYDeserializer
client ec2iface.EC2API client ec2iface.EC2API
defaultVPCRunner *terraform.ParallelResourceReader defaultVPCRunner *terraform.ParallelResourceReader
VPCRunner *terraform.ParallelResourceReader vpcRunner *terraform.ParallelResourceReader
} }
func NewVPCSupplier(runner *pkg.ParallelRunner, client ec2iface.EC2API) *VPCSupplier { func NewVPCSupplier(runner *pkg.ParallelRunner, client ec2iface.EC2API) *VPCSupplier {
@ -59,7 +59,7 @@ func (s VPCSupplier) Resources() ([]resource.Resource, error) {
for _, item := range VPCs { for _, item := range VPCs {
res := *item res := *item
s.VPCRunner.Run(func() (cty.Value, error) { s.vpcRunner.Run(func() (cty.Value, error) {
return s.readVPC(res) return s.readVPC(res)
}) })
} }
@ -76,7 +76,7 @@ func (s VPCSupplier) Resources() ([]resource.Resource, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
VPCResources, err := s.VPCRunner.Wait() VPCResources, err := s.vpcRunner.Wait()
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -86,7 +86,7 @@ func (s VPCSupplier) Resources() ([]resource.Resource, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
deserializedVPCs, err := s.VPCDeserializer.Deserialize(VPCResources) deserializedVPCs, err := s.vpcDeserializer.Deserialize(VPCResources)
if err != nil { if err != nil {
return nil, err return nil, err
} }