Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding endpoint_credentials param and changed Slice to SliceStable for sorting. #36

Merged
merged 2 commits into from
Dec 11, 2019

Conversation

kajeeth
Copy link
Contributor

@kajeeth kajeeth commented Dec 10, 2019

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@PettitWesley PettitWesley self-requested a review December 10, 2019 06:25
@@ -165,6 +167,14 @@ func newCloudWatchLogsClient(roleARN string, sess *session.Session, endpoint str
}
svcConfig.EndpointResolver = endpoints.ResolverFunc(cwCustomResolverFn)
}
if credsEndpoint != "" {
logrus.Infof("Trying to get credentials from credentials_endpoint %s", credsEndpoint)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This info statement is redundant since you already print it when you read the parameter.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, makes sense. will remove it

@@ -83,6 +83,8 @@ func getConfiguration(ctx unsafe.Pointer, pluginID int) cloudwatch.OutputPluginC
logrus.Infof("[cloudwatch %d] plugin parameter auto_create_group = '%v'\n", pluginID, config.AutoCreateGroup)
config.CWEndpoint = output.FLBPluginConfigKey(ctx, "endpoint")
logrus.Infof("[cloudwatch %d] plugin parameter endpoint = '%s'\n", pluginID, config.CWEndpoint)
config.CredsEndpoint = output.FLBPluginConfigKey(ctx, "credentials_endpoint")
logrus.Info("[cloudwatch %d] plugin parameter credentials_endpoint = %s\n", pluginID, config.CredsEndpoint)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be Infof

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
Will make both the changes and create a new revision

@PettitWesley
Copy link
Contributor

Ran the cloudwatch integ tests; they passed.

@PettitWesley PettitWesley merged commit ede63c8 into aws:master Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants