Commit 0eb19a00 authored by Dong Liu's avatar Dong Liu

Fix vm cache in concurrent case

parent 57888103
......@@ -112,7 +112,7 @@ func (az *Cloud) getVirtualMachine(nodeName types.NodeName) (vm compute.VirtualM
request.vm = &vm
}
return vm, nil
return *request.vm, nil
}
glog.V(6).Infof("getVirtualMachine hits cache for(%s)", vmName)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment