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

Fix storage iam policy setting. #5

Merged
merged 2 commits into from
Apr 17, 2018

Conversation

emilymye
Copy link
Contributor

@emilymye emilymye commented Apr 12, 2018

Fixes #3. Sadly, we can't detect this from the discovery doc and storage just does whatever it wants, including doing PUT data formats.

@emilymye emilymye requested a review from jefferai April 13, 2018 07:11
@emilymye emilymye changed the title Add special case for storage iam policy setting. Fix storage iam policy setting. Apr 16, 2018
func (r *iamResourceImpl) SetIamPolicyRequest(p *Policy) (req *http.Request, err error) {
var data interface{}
switch strings.ToLower(r.config.Service.Name) {
case "storage":
Copy link
Contributor

@briankassouf briankassouf Apr 16, 2018

Choose a reason for hiding this comment

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

Could you add a comment here describing the difference between these two cases?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@briankassouf briankassouf left a comment

Choose a reason for hiding this comment

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

Looks good!

@emilymye emilymye merged commit b5ca081 into hashicorp:master Apr 17, 2018
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.

2 participants