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>
pull/11333/head
Rohit Kothari 4 years ago committed by GitHub
parent cee58c22cc
commit 6a569b964f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save