From 6ed68c9d86154b18d7e70616b11b314b6a3750eb Mon Sep 17 00:00:00 2001 From: Krishnakumar R <29471693+kkmsft@users.noreply.github.com> Date: Thu, 3 Oct 2019 17:32:27 -0700 Subject: [PATCH] Remove unused GET in CreateOrUpdate (#411) --- pkg/cloudprovider/vm.go | 6 ------ pkg/cloudprovider/vmss.go | 6 ------ 2 files changed, 12 deletions(-) diff --git a/pkg/cloudprovider/vm.go b/pkg/cloudprovider/vm.go index f296073cd..539ec6f13 100644 --- a/pkg/cloudprovider/vm.go +++ b/pkg/cloudprovider/vm.go @@ -57,12 +57,6 @@ func (c *VMClient) CreateOrUpdate(rg string, nodeName string, vm compute.Virtual glog.Error(err) return err } - - vm, err = future.Result(c.client) - if err != nil { - glog.Error(err) - return err - } stats.UpdateCount(stats.TotalPutCalls, 1) stats.Update(stats.CloudPut, time.Since(begin)) return nil diff --git a/pkg/cloudprovider/vmss.go b/pkg/cloudprovider/vmss.go index 473d313ed..ea11a5539 100644 --- a/pkg/cloudprovider/vmss.go +++ b/pkg/cloudprovider/vmss.go @@ -63,12 +63,6 @@ func (c *VMSSClient) CreateOrUpdate(rg string, vmssName string, vm compute.Virtu glog.Error(err) return err } - - vm, err = future.Result(c.client) - if err != nil { - glog.Error(err) - return err - } stats.UpdateCount(stats.TotalPutCalls, 1) stats.Update(stats.CloudPut, time.Since(begin)) return nil