[s3metadataenricher] remove quotes from remote hash

This commit is contained in:
Paul Campbell 2019-05-10 08:39:18 +01:00
parent be266e0d41
commit 27d1d1b99f

View file

@ -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))
}) })
} }