fixed return values in PostProcess method

This commit is contained in:
LizaTretyakova 2017-04-22 12:26:07 +03:00
parent 5c1ee8cb3d
commit 80a24446c4
1 changed files with 6 additions and 1 deletions

View File

@ -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) {