Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Consolethinks committed Aug 28, 2024
1 parent f725e19 commit d1ab011
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/commands/datasetIngestor.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ For Windows you need instead to specify -user username:password on the command l
}

if autoarchiveFlag {
log.Println("Cannot autoarchive when transfering via Globus due to the transfer happening asynchronously. Use the \"globusCheckTransfer\" command to archive them")
log.Println("Cannot autoarchive when transferring via Globus due to the transfer happening asynchronously. Use the \"globusCheckTransfer\" command to archive them")
autoarchiveFlag = false
}
}
Expand Down Expand Up @@ -547,7 +547,7 @@ func init() {
datasetIngestorCmd.Flags().Bool("noninteractive", false, "If set no questions will be asked and the default settings for all undefined flags will be assumed")
datasetIngestorCmd.Flags().Bool("copy", false, "Defines if files should be copied from your local system to a central server before ingest (i.e. your data is not centrally available and therefore needs to be copied ='decentral' case). copyFlag has higher priority than nocopyFlag. If neither flag is defined the tool will try to make the best guess.")
datasetIngestorCmd.Flags().Bool("nocopy", false, "Defines if files should *not* be copied from your local system to a central server before ingest (i.e. your data is centrally available and therefore does not need to be copied ='central' case).")
datasetIngestorCmd.Flags().String("transfer-type", "ssh", "Selects the transfer type to be used for transfering files. Available options: \"ssh\", \"globus\"")
datasetIngestorCmd.Flags().String("transfer-type", "ssh", "Selects the transfer type to be used for transferring files. Available options: \"ssh\", \"globus\"")
datasetIngestorCmd.Flags().Int("tapecopies", 0, "Number of tapecopies to be used for archiving")
datasetIngestorCmd.Flags().Bool("autoarchive", false, "Option to create archive job automatically after ingestion")
datasetIngestorCmd.Flags().String("linkfiles", "keepInternalOnly", "Define what to do with symbolic links: (keep|delete|keepInternalOnly)")
Expand Down
6 changes: 3 additions & 3 deletions cmd/commands/globusCheckTransfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ For further help see "` + MANUAL + `"`,
}
fmt.Printf("Task status: \n=====\n%v\n=====\n", task)

// if marking as archivable is requested and the transfer has succeded
// if marking as archivable is requested and the transfer has succeeded
if markArchivable && task.Status == "SUCCEEDED" {
if task.SourceBasePath == nil {
log.Printf("Can't get source base path for task \"%s\". It will not be marked as archivable, but can probably be archived.\n", taskId)
Expand All @@ -175,7 +175,7 @@ For further help see "` + MANUAL + `"`,

// error handling and exceptions
if err != nil {
log.Printf("WARNING - an error has occured when querying the sourcefolder \"%s\" of task id \"%s\": %v\n", sourceFolder, taskId, err)
log.Printf("WARNING - an error has occurred when querying the sourcefolder \"%s\" of task id \"%s\": %v\n", sourceFolder, taskId, err)
log.Printf("Can't set %s task's dataset to archivable.\n", taskId)
continue
}
Expand Down Expand Up @@ -209,7 +209,7 @@ For further help see "` + MANUAL + `"`,
log.Printf("%s dataset is being marked as archivable...\n", result.Pid)
err := datasetIngestor.MarkFilesReady(client, APIServer, result.Pid, user)
if err != nil {
log.Printf("WARNING - error occured while trying to mark files ready for dataset with PID \"%s\": %v\n", result.Pid, err)
log.Printf("WARNING - error occurred while trying to mark files ready for dataset with PID \"%s\": %v\n", result.Pid, err)
log.Printf("%s dataset was (likely) not marked archivable.\n", result.Pid)
continue
}
Expand Down

0 comments on commit d1ab011

Please sign in to comment.