Skip to content

Commit

Permalink
fix(appengine): Use getOutput() instead of getStdOut(). (#3771)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Duftler committed Jun 10, 2019
1 parent 637fc13 commit d901202
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AppengineJobExecutor {

void runCommand(List<String> command) {
JobResult<String> jobStatus = jobExecutor.runJob(new JobRequest(command))
if (jobStatus.getResult() == JobResult.Result.FAILURE && jobStatus.getStdOut()) {
if (jobStatus.getResult() == JobResult.Result.FAILURE && jobStatus.getOutput()) {
String stdOut = jobStatus.getOutput()
String stdErr = jobStatus.getError()
throw new IllegalArgumentException("$stdOut + $stdErr")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class RestoreSnapshotAtomicOperation implements AtomicOperation<Void> {
ArrayList<String> command = ["terraform", "apply", "-state=" + directory + "/terraform.tfstate", directory]
JobResult<String> jobStatus = jobExecutor.runJob(new JobRequest(command))
cleanUpDirectory()
if (jobStatus.getResult() == JobResult.Result.FAILURE && jobStatus.getStdOut()) {
if (jobStatus.getResult() == JobResult.Result.FAILURE && jobStatus.getOutput()) {
String stdOut = jobStatus.getOutput()
String stdErr = jobStatus.getError()
throw new IllegalArgumentException("$stdOut + $stdErr")
Expand Down

0 comments on commit d901202

Please sign in to comment.