Don't request region unless we are on ec2#115
Don't request region unless we are on ec2#115ubiquitousthey wants to merge 3 commits intosous-chefs:masterfrom
Conversation
us-east-1 for s3
|
Looks good 👍 |
|
Could we specify the region as an attribute? Seems like a better longterm solution. |
|
Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog. GitHub Users Who Are Not Authorized To ContributeThe following GitHub users do not appear to have signed a CLA: |
|
Oh jeez. I don't have a supermarket account. You can revert my commit, or make a similar commit on a different branch. Or call it an Obvious Fix or whatever. |
|
Hi. Your friendly Curry bot here. Just letting you know that all commit authors have become authorized to contribute. I have added the "Signed CLA" label to this issue so it can easily be found in the future. |
|
OK. I have fixed this and it pulls from an attribute. Please merge. |
|
@ubiquitousthey I think this looks legit. One note I'd make is that there's a pattern in this library for creating methods that encapsulate the logic behind querying for a variable and responding with 'something' - see examples of You might want to factor that out to a method, then squash commits to give this another go. |
|
@miketheman do you mean something like this? Looking up the region is a bit different from the other |
|
@mkantor I think I see your point - as well as adding the extra method may fail itself. I guess if this is squashed, we can proceed. |
|
@ubiquitousthey any chance you can make it happen please? 🙏 |
|
OK. See PR #160 for the squashed commits |
|
Closing this in favor of #160. |
If we aren't on ec2 (and we are probably using s3) just default to us-east-1