From 80a24446c406311ee0ecf8b6db588f209491045b Mon Sep 17 00:00:00 2001 From: LizaTretyakova Date: Sat, 22 Apr 2017 12:26:07 +0300 Subject: [PATCH] fixed return values in PostProcess method --- post-processor.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/post-processor.go b/post-processor.go index e43e5026f..b40a4b369 100644 --- a/post-processor.go +++ b/post-processor.go @@ -176,7 +176,12 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, source packer.Artifact) (packe if err != nil { return nil, false, err } - return source, true, nil + + // Return: + // source -- the given artifact -- since we didn't change anything; + // false -- don't force packer to keep the source artifact + // nil -- no error occured here + return source, false, nil } func createClient(URL, username, password string) (*govmomi.Client, context.Context, error) {