-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
fix: pagination error on cloudwatch plugin #9693
Conversation
Fix the error of InvalidParameterValue: Parameters do not match original request parameters as the current code dont use correctly the return token from aws client
Thanks so much for the pull request! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Please make sure you sign the CLA, then comment !signed-cla
.
Overall the code looks good. I just left a comment on one block that could be simplified. Also, run gofmt
before you commit, so all the code looks uniform.
!signed-cla |
@Doron-Bargo looks like the CI is failing due to a minor formatting issue, you can resolve it by running Thanks for digging into this issue and finding a fix! |
Looks like new artifacts were built from this PR. Get them here!Artifact URLs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
(cherry picked from commit 646273a)
Fix the error of InvalidParameterValue: Parameters do not match original request parameters as the current code dont use correctly the return token from aws client
Required for all PRs:
Following the discussion on PR #9386 (the update to support multiple namespaces in cloudwatch input plugin ) the latest change keep the token pagination to the next namespace which result in an error of InvalidParameterValue: Parameters do not match original request parameters. This change is to fix this error.
I moved the namespace loop and the aws param initialization to be outside the loop of the pagination