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

Parse --statistic-values values into a decimal type #1039

Merged
merged 2 commits into from
Dec 2, 2014

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Dec 2, 2014

This was failing the improved botocore param validation because
we were previously setting this value to a string. We now set
this value to a decimal.Decimal to ensure we have a valid type
that will also pass the botocore param validation.

While I was in the code, I also updated the code to use the new
botocore CamelCasing from metric_data to MetricData. There was
also some general test cleanup to switch the tests to
assert_params_for_cmd2.

Fixes #1036.

cc @kyleknap @danielgtaylor

This was failing the improved botocore param validation because
we were previously setting this value to a string.  We now set
this value to a decimal.Decimal to ensure we have a valid type
that will also pass the botocore param validation.

While I was in the code, I also updated the code to use the new
botocore CamelCasing from metric_data to MetricData.  There was
also some general test cleanup to switch the tests to
assert_params_for_cmd2.

Fixes aws#1036.
@kyleknap
Copy link
Contributor

kyleknap commented Dec 2, 2014

Looks good. 🚢

@jamesls jamesls merged commit 309d8a9 into aws:develop Dec 2, 2014
jamesls added a commit that referenced this pull request Dec 2, 2014
* fix-string-type:
  Add issue to changelog
  Parse --statistic-values values into a decimal type

Conflicts:
	CHANGELOG.rst

Closes #1039.
thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this pull request Feb 12, 2022
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.

aws cloudwatch put-metric-data no longer working with statistic sets
2 participants