From 40f34a451d39e20a75dfa63bb4d92a21915e4b25 Mon Sep 17 00:00:00 2001 From: consolethinks Date: Thu, 8 Aug 2024 17:31:58 +0200 Subject: [PATCH] adjust dataset ingestor cli to changes --- cmd/commands/datasetIngestor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/commands/datasetIngestor.go b/cmd/commands/datasetIngestor.go index c7e9bfa..ed78c3e 100644 --- a/cmd/commands/datasetIngestor.go +++ b/cmd/commands/datasetIngestor.go @@ -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) } @@ -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