We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 519715e commit 5b9a3d7Copy full SHA for 5b9a3d7
1 file changed
plugins/storage/volume/linstor/src/main/java/com/cloud/hypervisor/kvm/storage/LinstorStorageAdaptor.java
@@ -585,8 +585,8 @@ private static boolean isSystemTemplate(KVMPhysicalDisk disk) {
585
Path propFile = diskPath.getParent().resolve("template.properties");
586
if (Files.exists(propFile)) {
587
java.util.Properties templateProps = new java.util.Properties();
588
- try {
589
- templateProps.load(new FileInputStream(propFile.toFile()));
+ try (FileInputStream in = new FileInputStream(propFile.toFile())) {
+ templateProps.load(in);
590
String desc = templateProps.getProperty("description");
591
if (desc != null && desc.startsWith("SystemVM Template")) {
592
return true;
0 commit comments