VMware typo
This commit is contained in:
parent
81272d1427
commit
fc4bee4598
|
@ -99,7 +99,7 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac
|
||||||
}
|
}
|
||||||
// In some occasions the VM state is powered on and if we immediately try to mark as template
|
// In some occasions the VM state is powered on and if we immediately try to mark as template
|
||||||
// (after the ESXi creates it) it will fail. If vSphere is given a few seconds this behavior doesn't reappear.
|
// (after the ESXi creates it) it will fail. If vSphere is given a few seconds this behavior doesn't reappear.
|
||||||
ui.Message("Waiting 10s for VMWare vSphere to start")
|
ui.Message("Waiting 10s for VMware vSphere to start")
|
||||||
time.Sleep(10 * time.Second)
|
time.Sleep(10 * time.Second)
|
||||||
c, err := govmomi.NewClient(context.Background(), p.url, p.config.Insecure)
|
c, err := govmomi.NewClient(context.Background(), p.url, p.config.Insecure)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue