Skip to content

Commit

Permalink
Remove unused GET in CreateOrUpdate (Azure#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmsft authored and John Brosnan committed Sep 30, 2021
1 parent ebb75c7 commit 6ed68c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions pkg/cloudprovider/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions pkg/cloudprovider/vmss.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ed68c9

Please sign in to comment.