Remove useless exports in VPC supplier
parent
5da54e7767
commit
c457f125e2
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue