diff --git a/v2/cmd/asoctl/cmd/import_azure_resource.go b/v2/cmd/asoctl/cmd/import_azure_resource.go index 4bbbb28d3e0..48d591b51a2 100644 --- a/v2/cmd/asoctl/cmd/import_azure_resource.go +++ b/v2/cmd/asoctl/cmd/import_azure_resource.go @@ -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" @@ -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") }