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

Make ebs_raid resource usable without a snapshots attribute #156

Merged
merged 1 commit into from
Jun 28, 2015
Merged

Make ebs_raid resource usable without a snapshots attribute #156

merged 1 commit into from
Jun 28, 2015

Conversation

mkantor
Copy link
Contributor

@mkantor mkantor commented Jun 16, 2015

The fix is simple: change empty value for snapshot_id from '' to nil.

Before this change, using the ebs_raid resource without a snapshots attribute produced the following error:

Aws::EC2::Errors::MissingParameter
The request must contain the parameter size/snapshot

I plucked this out of #130 since it's the minimum change required to make ebs_raid usable again. The encryption stuff is great, but orthogonal to this fix.

Fixes #118.

Before this change, using the ebs_raid resource without a `snapshots`
attribute produced the following error:
> Aws::EC2::Errors::MissingParameter
> The request must contain the parameter size/snapshot

Fixes #118.
@miketheman miketheman added this to the 2.7.2 milestone Jun 28, 2015
miketheman added a commit that referenced this pull request Jun 28, 2015
…napshots

Make ebs_raid resource usable without a `snapshots` attribute
@miketheman miketheman merged commit cef5c8e into sous-chefs:master Jun 28, 2015
@miketheman
Copy link
Contributor

Thanks for your effort on picking this out!

@DrMerlin
Copy link

Hey, @miketheman- any reason that the original pull request was not merged? Is there anything wrong with it? There are no negative comments in the PR.

@miketheman
Copy link
Contributor

@DrMerlin Sure - the PR suggested did both a fix and an enhancement - and I was trying to get all bugs that I could released in a bugfix-only release.

For that one, I'd suggest rebasing against current master, and squashing commits down to reflect the addition of the encryption to be considered for an enhancement release.

Does that make sense?

@DrMerlin
Copy link

@miketheman
With all due respect- #130 contained two fixes and no enhancements. The enhancement was already added through #114 on 6 Apr, but it was broken. #130 fixed both errors associated with creating encrypted EBS RAIDs, but isn't an enhancement itself.

@miketheman
Copy link
Contributor

@DrMerlin I'm sorry if I missed that - but reading through the code, it appears to introduce the encrypted behavior.

Looking at the history of the ebs_raid.rb file, I cannot see that these cahnges ever made it into master. Those encryption changes appear to be scoped to the ebs_volume resource, not the ebs_raid one - that's the enhancement I'm referring to.

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.

Error "Aws::EC2::Errors::MissingParameter The request must contain the parameter size/snapshot" related to #80
4 participants