JCLOUDS-1337: only set fs tier when non-null

Fixes regression from 61d4be8746.
This commit is contained in:
Andrew Gaul 2017-10-20 20:51:50 -07:00
parent a17cf61cf9
commit b93270aef2
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@ public class BlobToObjectMetadata implements Function<BlobMetadata, MutableObjec
for (Entry<String, String> entry : from.getUserMetadata().entrySet())
to.getUserMetadata().put(entry.getKey().toLowerCase(), entry.getValue());
}
if (from.getTier() != null) {
to.setStorageClass(StorageClass.fromTier(from.getTier()));
}
return to;
}