Close govmomi session
This commit is contained in:
parent
786d3c0a9d
commit
5e1d241db4
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue