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
89053d9a8b
commit
5448b92ee8
|
@ -371,7 +371,10 @@ public class FilesystemStorageStrategyImpl implements LocalStorageStrategy {
|
|||
buf.flip();
|
||||
expires = new Date(buf.asLongBuffer().get());
|
||||
}
|
||||
tier = Tier.valueOf(readStringAttributeIfPresent(view, attributes, XATTR_STORAGE_TIER));
|
||||
String tierString = readStringAttributeIfPresent(view, attributes, XATTR_STORAGE_TIER);
|
||||
if (tierString != null) {
|
||||
tier = Tier.valueOf(tierString);
|
||||
}
|
||||
for (String attribute : attributes) {
|
||||
if (!attribute.startsWith(XATTR_USER_METADATA_PREFIX)) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue