@@ -87,7 +87,7 @@ def main(ctx, config_file, url, email, password):
87
87
dspace_client = dspace .DSpaceClient (url )
88
88
dspace_client .authenticate (email , password )
89
89
ctx .obj ["dspace_client" ] = dspace_client
90
- ctx .obj ["config " ] = source_config
90
+ ctx .obj ["source_config " ] = source_config
91
91
logger .info ("Initializing S3 client" )
92
92
ctx .obj ["s3_client" ] = S3Client .get_client ()
93
93
ctx .obj ["start_time" ] = perf_counter ()
@@ -134,7 +134,7 @@ def additems(
134
134
(i.e., files) associated with the item are read from the metadata CSV file, and
135
135
uploaded to the newly created item on DSpace.
136
136
"""
137
- mapping = ctx .obj ["config " ]["mapping" ]
137
+ mapping = ctx .obj ["source_config " ]["mapping" ]
138
138
dspace_client = ctx .obj ["dspace_client" ]
139
139
140
140
if "collection_uuid" not in ctx .obj and collection_handle is None :
@@ -236,7 +236,7 @@ def reconcile(ctx, metadata_csv, output_directory, content_directory):
236
236
* updated-<metadata-csv>.csv: Entries from the metadata CSV file with a
237
237
corresponding file in the content directory.
238
238
"""
239
- source_settings = ctx .obj ["config " ]["settings" ]
239
+ source_settings = ctx .obj ["source_config " ]["settings" ]
240
240
bitstreams = helpers .get_files_from_s3 (
241
241
s3_path = content_directory ,
242
242
s3_client = ctx .obj ["s3_client" ],
0 commit comments