Skip to content

Commit

Permalink
ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
akpsgit committed Jul 27, 2023
1 parent f9e5b34 commit d73f618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime_scan/pkg/provider/azure/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (c *Client) getRootVolumeInfo(ctx context.Context, vm *armcompute.VirtualMa
utils.StringPointerValOrEmpty(vm.Properties.StorageProfile.OSDisk.ManagedDisk.ID), err)
return ret
}
osDisk, err := c.disksClient.Get(context.TODO(), osDiskID.ResourceGroupName, osDiskID.Name, nil)
osDisk, err := c.disksClient.Get(ctx, osDiskID.ResourceGroupName, osDiskID.Name, nil)
if err != nil {
logger.Warnf("Failed to get OS disk. DiskID=%v: %v",
utils.StringPointerValOrEmpty(vm.Properties.StorageProfile.OSDisk.ManagedDisk.ID), err)
Expand Down

0 comments on commit d73f618

Please sign in to comment.