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: Deploy bucket in configured location #227

Merged
merged 2 commits into from
Jul 7, 2020

Conversation

Gnucki
Copy link
Contributor

@Gnucki Gnucki commented Jul 7, 2020

This is a basic correction for the issue #226

Tell me if I can do something better !

Note that this PR is similar to #220

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

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

@Gnucki thank you, it looks good (I assume you've tested that it fixes the issue?)

I've proposed one minor style improvement

const newBucket = _.cloneDeep(bucket);
newBucket.name = name;
if (location) {
newBucket.properties = newBucket.properties || {};
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's write it as if (!newBucket.properties) newBucket.properties = {}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Improvement done.

Of course, I tested it ;)

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

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

Thank you @Gnucki 👍

@medikoo medikoo merged commit 86494b4 into serverless:master Jul 7, 2020
@curtismenmuir
Copy link

When will the next release be available with this fix?

@medikoo
Copy link
Contributor

medikoo commented Aug 27, 2020

@curtismenmuir just published v3.1.1

@curtismenmuir
Copy link

@medikoo Perfect, thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants