Skip to content

Commit

Permalink
Set providers list in config to aws for provider_aws_ec2_test.go (#36106
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kaiyan-sheng authored Jul 19, 2023
1 parent 38e7b02 commit 4eaa918
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func TestRetrieveAWSMetadataEC2(t *testing.T) {
Tags: []types.TagDescription{},
}, nil
},
processorOverwrite: false,
processorOverwrite: true,
previousEvent: mapstr.M{
"cloud.provider": "aws",
},
Expand Down Expand Up @@ -349,6 +349,7 @@ func TestRetrieveAWSMetadataEC2(t *testing.T) {

config, err := conf.NewConfigFrom(map[string]interface{}{
"overwrite": tc.processorOverwrite,
"providers": []string{"aws"},
})
if err != nil {
t.Fatalf("error creating config from map: %s", err.Error())
Expand Down

0 comments on commit 4eaa918

Please sign in to comment.