Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
avoid seg fault in elasticbeanstalk (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
roneli committed May 3, 2021
1 parent 82dc2fa commit e283103
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions resources/elasticbeanstalk_environments.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func ElasticbeanstalkEnvironments() *schema.Table {
// ====================================================================================================================
// Table Resolver Functions
// ====================================================================================================================
func fetchElasticbeanstalkEnvironments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan interface{}) error {
func fetchElasticbeanstalkEnvironments(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan interface{}) error {
var config elasticbeanstalk.DescribeEnvironmentsInput
c := meta.(*client.Client)
svc := c.Services().ElasticBeanstalk
Expand All @@ -193,13 +193,15 @@ func fetchElasticbeanstalkEnvironments(ctx context.Context, meta schema.ClientMe
}
return nil
}
func fetchElasticbeanstalkEnvironmentLinks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan interface{}) error {
func fetchElasticbeanstalkEnvironmentLinks(_ context.Context, _ schema.ClientMeta, parent *schema.Resource, res chan interface{}) error {
p := parent.Item.(types.EnvironmentDescription)
res <- p.EnvironmentLinks
return nil
}
func fetchElasticbeanstalkEnvResourcesLoadBalancerListeners(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan interface{}) error {
func fetchElasticbeanstalkEnvResourcesLoadBalancerListeners(_ context.Context, _ schema.ClientMeta, parent *schema.Resource, res chan interface{}) error {
p := parent.Item.(types.EnvironmentDescription)
res <- p.Resources.LoadBalancer.Listeners
if p.Resources != nil && p.Resources.LoadBalancer != nil {
res <- p.Resources.LoadBalancer.Listeners
}
return nil
}

0 comments on commit e283103

Please sign in to comment.