mirror of https://github.com/apache/jclouds.git
JCLOUDS-1337: only set fs tier when non-null
Fixes regression from 61d4be8746
.
This commit is contained in:
parent
a17cf61cf9
commit
b93270aef2
|
@ -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());
|
||||
}
|
||||
to.setStorageClass(StorageClass.fromTier(from.getTier()));
|
||||
if (from.getTier() != null) {
|
||||
to.setStorageClass(StorageClass.fromTier(from.getTier()));
|
||||
}
|
||||
return to;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue