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

Add :backup_type option to PostgresAdmin.restore #402

Conversation

NickLaMuro
Copy link
Member

Allows pre-fetching a backup_type when calling PostgresAdmin.restore, so no extra file type checking is done on the opt[:local_file] (which could be a streamed IO where that would break things down the line).

This behaves as it had if this option isn't passed.

Allows pre-fetching a backup_type when calling .restore, so no extra
file type checking is done on the `opt[:local_file]` (which could be a
streamed IO where that would break things down the line).

This behaves as it had if this option isn't passed.
@NickLaMuro
Copy link
Member Author

@miq-bot assign @carbonin
@miq-bot add_label enhancement, hammer/yes

@miq-bot
Copy link
Member

miq-bot commented Nov 5, 2018

Checked commit NickLaMuro@0505809 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🏆

@carbonin carbonin merged commit b7d29b3 into ManageIQ:master Nov 6, 2018
@carbonin carbonin added this to the Sprint 99 Ending Nov 19, 2018 milestone Nov 6, 2018
simaishi pushed a commit that referenced this pull request Nov 7, 2018
…h-in-postgres-admin-restore

Add :backup_type option to PostgresAdmin.restore
(cherry picked from commit b7d29b3)
@simaishi
Copy link
Contributor

simaishi commented Nov 7, 2018

Hammer backport details:

$ git log -1
commit c0f144c54f748d30b890a67daf7669d50a2437f4
Author: Nick Carboni <ncarboni@redhat.com>
Date:   Tue Nov 6 11:44:45 2018 -0500

    Merge pull request #402 from NickLaMuro/support-magic-number-pre-fetch-in-postgres-admin-restore
    
    Add :backup_type option to PostgresAdmin.restore
    (cherry picked from commit b7d29b3b81adf8f57a7abf2b7150fe3d1737a2ea)

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.

4 participants