[s3metadataenricher] remove quotes from remote hash
This commit is contained in:
parent
be266e0d41
commit
27d1d1b99f
1 changed files with 4 additions and 2 deletions
|
@ -16,8 +16,10 @@ trait S3MetaDataEnricher extends S3Client with KeyGenerator {
|
||||||
for {
|
for {
|
||||||
head <- objectHead(c.bucket, key)
|
head <- objectHead(c.bucket, key)
|
||||||
} yield head.map {
|
} yield head.map {
|
||||||
case (hash,lastModified) =>
|
case (hash, lastModified) => {
|
||||||
Right(S3MetaData(file, key, hash, lastModified))
|
val cleanHash = hash.filter{c=>c!='"'}
|
||||||
|
Right(S3MetaData(file, key, cleanHash, lastModified))
|
||||||
|
}
|
||||||
}.getOrElse(Left(file))
|
}.getOrElse(Left(file))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue