mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
Show successful message upon successful packer validate (#11337)
* Show successful message upon successful packer validate Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
This commit is contained in:
parent
cee58c22cc
commit
6a569b964f
1 changed files with 6 additions and 1 deletions
|
|
@ -74,7 +74,12 @@ func (c *ValidateCommand) RunContext(ctx context.Context, cla *ValidateArgs) int
|
|||
})
|
||||
diags = append(diags, fixerDiags...)
|
||||
|
||||
return writeDiags(c.Ui, nil, diags)
|
||||
ret = writeDiags(c.Ui, nil, diags)
|
||||
if ret == 0 {
|
||||
c.Ui.Say("The configuration is valid.")
|
||||
}
|
||||
|
||||
return ret
|
||||
}
|
||||
|
||||
func (*ValidateCommand) Help() string {
|
||||
|
|
|
|||
Loading…
Reference in a new issue