Skip to content

Commit

Permalink
fix armclient err log
Browse files Browse the repository at this point in the history
  • Loading branch information
jwtty authored and k8s-infra-cherrypick-robot committed Aug 14, 2023
1 parent 8a645ee commit 44740b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/azureclients/armclient/azure_armclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ func (c *Client) PutResourceAsync(ctx context.Context, resourceID string, parame
future, resp, rErr := c.SendAsync(ctx, request)
defer c.CloseResponse(ctx, resp)
if rErr != nil {
klog.V(5).Infof("Received error in %s: resourceID: %s, error: %s", "put.send", resourceID, err)
klog.V(5).Infof("Received error in %s: resourceID: %s, error: %s", "put.send", resourceID, rErr.Error())
return nil, rErr
}

Expand Down Expand Up @@ -588,7 +588,7 @@ func (c *Client) DeleteResource(ctx context.Context, resourceID string, decorato
return nil
}
if err := future.WaitForCompletionRef(ctx, c.client); err != nil {
klog.V(5).Infof("Received error in %s: resourceID: %s, error: %s", "delete.wait", resourceID, clientErr.Error())
klog.V(5).Infof("Received error in %s: resourceID: %s, error: %s", "delete.wait", resourceID, err)
return retry.NewError(true, err)
}

Expand Down

0 comments on commit 44740b6

Please sign in to comment.