Skip to content

Commit

Permalink
Update azure_logcollector.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecile Robert-Michon committed May 27, 2021
1 parent c9440b6 commit 1e4f9d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/azure_logcollector.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func collectVMSSBootLog(ctx context.Context, providerID string, outputPath strin
resourceId := strings.TrimPrefix(providerID, azure.ProviderIDPrefix)
v := strings.Split(resourceId, "/")
instanceId := v[len(v)-1]
resourceID = strings.TrimSuffix(resourceID, "/virtualMachines/" + instanceId)
resourceId = strings.TrimSuffix(resourceId, "/virtualMachines/" + instanceId)
resource, err := autorest.ParseResourceID(resourceId)
if err != nil {
return errors.Wrap(err, "failed to parse resource id")
Expand Down

0 comments on commit 1e4f9d5

Please sign in to comment.