Skip to content

Commit

Permalink
Use correct output stream
Browse files Browse the repository at this point in the history
  • Loading branch information
theunrepentantgeek committed Aug 4, 2023
1 parent cc3f841 commit 69520dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions v2/cmd/asoctl/cmd/import_azure_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package cmd

import (
"context"
"os"

"github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
Expand Down Expand Up @@ -118,7 +117,7 @@ func importAzureResource(ctx context.Context, armIDs []string, options importAzu
return errors.Wrapf(err, "failed to write into folder %s", folder)
}
} else {
err := result.SaveToWriter(os.Stdout)
err := result.SaveToWriter(progress)
if err != nil {
return errors.Wrapf(err, "failed to write to stdout")
}
Expand Down

0 comments on commit 69520dc

Please sign in to comment.