Commit 2c7e1317 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #36724 from YuPengZTE/devCtx

Automatic merge from submit-queue (batch tested with PRs 36543, 38189, 38289, 38291, 36724) context.Context should be the first parameter of a function in vsphere **What this PR does / why we need it**: Change the position of the context.Context parameter. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: golint **Release note**: ```release-note ``` Signed-off-by: 's avataryupeng <yu.peng36@zte.com.cn>
parents cafba0b9 fcca86d8
...@@ -118,7 +118,7 @@ func TestVSphereLogin(t *testing.T) { ...@@ -118,7 +118,7 @@ func TestVSphereLogin(t *testing.T) {
defer cancel() defer cancel()
// Create vSphere client // Create vSphere client
err = vSphereLogin(vs, ctx) err = vSphereLogin(ctx, vs)
if err != nil { if err != nil {
t.Errorf("Failed to create vSpere client: %s", err) t.Errorf("Failed to create vSpere client: %s", err)
} }
......
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