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

Save Aws Region in File Depot for DB Backup #17803

Merged
merged 1 commit into from
Aug 6, 2018

Conversation

jerryk55
Copy link
Member

@jerryk55 jerryk55 commented Aug 6, 2018

The AWS region for S3 file depots was not being saved when passed in from the UI.

In coordination with ManageIQ/manageiq-ui-classic#4300 which is setting the AWS region from a drop down list, we need to set the region in the file_depot for S3 DB backups.

@h-kataria @roliveri @carbonin @NickLaMuro fyi & review.

Links

depot = file_depot.class.name == depot_class ? file_depot : build_file_depot(:type => depot_class)
depot.name = params[:name]
depot.uri = params[:uri]
# depot.aws_region = params[:aws_region]
Copy link
Member

Choose a reason for hiding this comment

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

@jerryk55 should this be uncommented?

Copy link
Member Author

Choose a reason for hiding this comment

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

Doh! Absolutely. I tested without the line prior to committing and obviously forgot to add it back in. Thanks @carbonin.

The AWS region for S3 file depots was not being saved when passed in from the UI.
@jerryk55 jerryk55 force-pushed the s3_file_depot_save_aws_region branch from f6f5b2e to 769ad21 Compare August 6, 2018 19:31
@carbonin
Copy link
Member

carbonin commented Aug 6, 2018

Also, is MiqSchedule the only place this needs to be fixed? Seems odd that that's where we save a file depot. Or is this also done somewhere in the UI?

@miq-bot
Copy link
Member

miq-bot commented Aug 6, 2018

Checked commit jerryk55@769ad21 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🏆

@carbonin carbonin self-assigned this Aug 6, 2018
@carbonin carbonin added this to the Sprint 92 Ending Aug 13, 2018 milestone Aug 6, 2018
@carbonin carbonin merged commit 7b517b5 into ManageIQ:master Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants