-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(layer): handle terraform errors in runner (#149)
* fix(layer): check plan sum in IsPlanArtifactUpToDate * fix(layer): change condition reason when plan failed * fix(layer): change condition IsApplyUpToDate when plan failed * fix(runner): do not put an empty plan checksum * fix(runner): put exit code to 1 on error * fix(runner): try to not use os.exit * fix(runner): make Exec func return with err * fix(runner): new Exec function with better error handling * revert: fix(runner): new Exec function with better error handling This reverts commit d17f524. * fix(runner): propagate error through cobra * fix(runner): error propagation * fix(mispell): some mispell in error messages * test(layer): adapt fail plan test case to new condition
- Loading branch information
1 parent
8f98413
commit 833c77e
Showing
9 changed files
with
53 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package burrito | ||
|
||
func (app *App) StartRunner() { | ||
app.Runner.Exec() | ||
func (app *App) StartRunner() error { | ||
return app.Runner.Exec() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters