Skip to content

Commit

Permalink
changed log and added new log in delete pending nic
Browse files Browse the repository at this point in the history
  • Loading branch information
unmarshall committed Nov 16, 2023
1 parent 8c9b033 commit b316051
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/azure/provider/helpers/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ func createNICDeleteTask(resourceGroup, nicName string, nicAccess *armnetwork.In
return utils.Task{
Name: fmt.Sprintf("delete-nic-[resourceGroup: %s name: %s]", resourceGroup, nicName),
Fn: func(ctx context.Context) error {
klog.Infof("Attempting to delete nic: [ResourceGroup: %s, NicName: %s] if it exists", resourceGroup, nicName)
return accesshelpers.DeleteNIC(ctx, nicAccess, resourceGroup, nicName)
},
}
Expand All @@ -275,7 +276,7 @@ func createDisksDeletionTasks(resourceGroup string, diskNames []string, diskAcce
for _, diskName := range diskNames {
diskName := diskName // TODO: remove this once https://github.com/golang/go/wiki/LoopvarExperiment becomes part of 1.21.x
taskFn := func(ctx context.Context) error {
klog.Infof("Deleting disk: [ResourceGroup: %s, DiskName: %s]", resourceGroup, diskName)
klog.Infof("Attempting to delete disk: [ResourceGroup: %s, DiskName: %s] if it exists", resourceGroup, diskName)
return accesshelpers.DeleteDisk(ctx, diskAccess, resourceGroup, diskName)
}
tasks = append(tasks, utils.Task{
Expand Down

0 comments on commit b316051

Please sign in to comment.