Close govmomi session

This commit is contained in:
bugbuilder 2017-07-31 10:30:13 -04:00
parent 786d3c0a9d
commit 5e1d241db4
1 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,8 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac
return nil, false, fmt.Errorf("Error connecting to vSphere: %s", err) return nil, false, fmt.Errorf("Error connecting to vSphere: %s", err)
} }
defer c.Logout(context.Background())
state := new(multistep.BasicStateBag) state := new(multistep.BasicStateBag)
state.Put("ui", ui) state.Put("ui", ui)
state.Put("client", c) state.Put("client", c)