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

wpsnapshots push -n results in error, related to #55 #56

Open
dustinrue opened this issue Sep 19, 2019 · 1 comment
Open

wpsnapshots push -n results in error, related to #55 #56

dustinrue opened this issue Sep 19, 2019 · 1 comment

Comments

@dustinrue
Copy link
Contributor

dustinrue commented Sep 19, 2019

Describe the bug
If you issue wpsnapshosts push -n you will get an error because the project slug value isn't present.

When you issue wpsnapshots create -n and then wpsnapshots push <id> the operation does issue the error but it also fails to actually push the snapshot up.

Steps to Reproduce

  1. Create an awesome new project
  2. Attempt to create a snapshot and because you don't want to answer all those pesky questions you pass -n
  3. Become sad because the snapshot fails with
Fatal error: Uncaught Error: Call to undefined method UnexpectedValueException::getAwsErrorCode() in ...vendor/10up/wpsnapshots/src/classes/DB.php on line 167

Expected behavior
As mentioned in #55, adding a --project option would allow someone to create a snapshot without interaction. This is crucial when trying to automate the process as well.

Additional context
One of my goals is to allow wpsnapshots to be scripted/automated. By providing a few more options I believe I can achieve that.

@dustinrue dustinrue added the bug label Sep 19, 2019
@tlovett1
Copy link
Member

@dustinrue any chance you could put a PR together?

@jeffpaul jeffpaul added this to the 1.7.0 milestone Jul 14, 2020
@jeffpaul jeffpaul modified the milestones: 1.7.0, 2.0.2 Sep 1, 2020
@jeffpaul jeffpaul modified the milestones: 2.2.0, 2.3.0 May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants