EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit d628f09d authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Fixing wrong item lookup in S3 source

parent 63384b45
No related branches found
No related tags found
2 merge requests!36Staging to master to prepare 1.0.0 release,!32Registrar modularization
...@@ -177,7 +177,7 @@ class S3Source(Source): ...@@ -177,7 +177,7 @@ class S3Source(Source):
f"{bucket}/{item['Key']}" f"{bucket}/{item['Key']}"
for item in response['Contents'] for item in response['Contents']
if glob_patterns is None or any( if glob_patterns is None or any(
fnmatch(item['name'], glob_pattern) for glob_pattern in glob_patterns fnmatch(item['Key'], glob_pattern) for glob_pattern in glob_patterns
) )
] ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment