Skip to content

Commit

Permalink
small fixes for datasetRetriever
Browse files Browse the repository at this point in the history
  • Loading branch information
consolethinks committed Oct 11, 2024
1 parent 5bbab98 commit 3c832ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/commands/datasetRetriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ For further help see "` + MANUAL + `"`,
fmt.Println("Dataset ID Size[MB] Owner SourceFolder")
fmt.Println("====================================================================================================")
for _, datasetDetail := range datasetDetails {
log.Printf("%s %9d %v %v\n", datasetId, datasetDetail.Size/1024./1024., datasetDetail.OwnerGroup, datasetDetail.SourceFolder)
fmt.Printf("%s %9d %v %v\n", datasetId, datasetDetail.Size/1024./1024., datasetDetail.OwnerGroup, datasetDetail.SourceFolder)
}
if len(missingDatasetIds) > 0 {
fmt.Printf("\nThe following dataset id's were missing or had non-matching ownerGroups so they won't be copied: \n")
Expand Down
2 changes: 1 addition & 1 deletion datasetUtils/getDatasetDetails.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func fetchDatasetDetails(client *http.Client, token string, url string) ([]Datas
if err != nil {
return nil, err
}
req.Header.Set("Authentication", "Bearer "+token)
req.Header.Set("Authorization", "Bearer "+token)
resp, err := client.Do(req)
if err != nil {
return nil, err
Expand Down

0 comments on commit 3c832ee

Please sign in to comment.