mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8648: Do not configure the ImageFormat Processor when fetching filesize
It will throw an exception and that's needed. Also, make the log show about which file we are talking about Signed-off-by: Wido den Hollander <wido@widodh.nl> Signed-off-by: Pierre-Luc Dion <pdion891@apache.org>
This commit is contained in:
parent
ac9c2a224a
commit
554f5f9fbb
|
|
@ -860,10 +860,9 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S
|
|||
return file.length();
|
||||
}
|
||||
|
||||
processor.configure("template processor", new HashMap<String, Object>());
|
||||
return processor.getVirtualSize(file);
|
||||
} catch (Exception e) {
|
||||
s_logger.warn("Failed to get virtual size, returning file size instead:", e);
|
||||
s_logger.warn("Failed to get virtual size of file " + file.getPath() + ", returning file size instead: ", e);
|
||||
return file.length();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue