Skip to content

Commit

Permalink
Placed the log statement in correct place for the table aws_codebuild…
Browse files Browse the repository at this point in the history
…_source_credential and aws_ec2_ssl_policy (#2393)
  • Loading branch information
ParthaI authored Feb 5, 2025
1 parent 60ac229 commit e0e8012
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aws/table_aws_codebuild_source_credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ func tableAwsCodeBuildSourceCredential(_ context.Context) *plugin.Table {
func listCodeBuildSourceCredentials(ctx context.Context, d *plugin.QueryData, _ *plugin.HydrateData) (interface{}, error) {
// Create session
svc, err := CodeBuildClient(ctx, d)
plugin.Logger(ctx).Error("aws_codebuild_source_credential.listCodeBuildSourceCredentials", "connection_error", err)
if err != nil {
plugin.Logger(ctx).Error("aws_codebuild_source_credential.listCodeBuildSourceCredentials", "connection_error", err)
return nil, err
}
if svc == nil {
Expand Down
2 changes: 1 addition & 1 deletion aws/table_aws_ec2_ssl_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ func listEc2SslPolicies(ctx context.Context, d *plugin.QueryData, _ *plugin.Hydr

// Create Session
svc, err := ELBV2Client(ctx, d)
plugin.Logger(ctx).Error("aws_ec2_ssl_policy.listEc2SslPolicies", "connection_error", err)
if err != nil {
plugin.Logger(ctx).Error("aws_ec2_ssl_policy.listEc2SslPolicies", "connection_error", err)
return nil, err
}

Expand Down

0 comments on commit e0e8012

Please sign in to comment.