Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two bugs that prevented tests from passing #13

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/datasetRetriever/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func main() {
log.Printf("You are about to retrieve dataset(s) from the === %s === retrieve server...", env)
color.Unset()

if *retrieveFlag == false {
if !*retrieveFlag {
color.Set(color.FgRed)
log.Printf("Note: you run in 'dry' mode to simply check which data would be fetched.\n")
log.Printf("Use the -retrieve flag to actually transfer the datasets to your chosen destination path.\n")
Expand Down Expand Up @@ -126,7 +126,7 @@ func main() {

if len(datasetList) == 0 {
fmt.Printf("\n\nNo datasets found on intermediate cache server.\n")
fmt.Println("Did you submit a retrieve job from the data catalog first ?\n")
fmt.Println("Did you submit a retrieve job from the data catalog first ?")
} else {
// get sourceFolder and other dataset related info for all Datasets
datasetDetails := datasetUtils.GetDatasetDetails(client, APIServer, user["accessToken"], datasetList, *ownerGroup)
Expand Down
2 changes: 1 addition & 1 deletion datasetUtils/getUserInfoFromToken.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func GetUserInfoFromToken(client *http.Client, APIServer string, token string) (
accessGroups = respObj.CurrentGroups
log.Printf("User is member in following groups: %v\n", accessGroups)
} else {
log.Fatalln("Could not map a user to the token %v", token)
log.Fatalf("Could not map a user to the token %v", token)
}
return u, accessGroups

Expand Down
Loading