fix spelling error 'retrive' in log

k3s-v1.15.3
qingsenLi 2019-04-04 17:34:32 +08:00
parent e6188f8c29
commit ebd681d36a
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ func (dc *Datacenter) GetHostByVMUUID(ctx context.Context, vmUUID string) (*type
pc := property.DefaultCollector(virtualMachine.Client())
err = pc.RetrieveOne(ctx, virtualMachine.Reference(), []string{"summary.runtime.host"}, &vmMo)
if err != nil {
klog.Errorf("Failed to retrive VM runtime host, err: %v", err)
klog.Errorf("Failed to retrieve VM runtime host, err: %v", err)
return nil, err
}
host := vmMo.Summary.Runtime.Host