Skip to content

Commit

Permalink
adjust dataset ingestor cli to changes
Browse files Browse the repository at this point in the history
  • Loading branch information
consolethinks committed Aug 8, 2024
1 parent fcd68c7 commit 40f34a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/commands/datasetIngestor.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ For Windows you need instead to specify -user username:password on the command l
user, accessGroups := authenticate(RealAuthenticator{}, client, APIServer, userpass, token)

/* TODO Add info about policy settings and that autoarchive will take place or not */
metaDataMap, metadataSourceFolder, beamlineAccount, err := datasetIngestor.CheckMetadata(client, APIServer, metadatafile, user, accessGroups)
metaDataMap, metadataSourceFolder, beamlineAccount, err := datasetIngestor.ReadAndCheckMetadata(client, APIServer, metadatafile, user, accessGroups)
if err != nil {
log.Fatal("Error in CheckMetadata function: ", err)
}
Expand Down Expand Up @@ -383,7 +383,7 @@ For Windows you need instead to specify -user username:password on the command l
if copyFlag {
// TODO rewrite SyncDataToFileserver
log.Println("Syncing files to cache server...")
err := datasetIngestor.RSyncLocalDataToFileserver(datasetId, user, RSYNCServer, datasetSourceFolder, absFileListing)
err := datasetIngestor.SyncLocalDataToFileserver(datasetId, user, RSYNCServer, datasetSourceFolder, absFileListing, os.Stdout)
if err == nil {
// delayed enabling
archivable = true
Expand Down

0 comments on commit 40f34a4

Please sign in to comment.