mirror of https://github.com/apache/cloudstack.git
Fix findbugs encoding warning in LibvirtCreatePrivateTemplateFromVolumeCommandWrapper Libvirt templates should be written in UTF-8, default was already doing that so this just gets rid of the findbugs warning
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> This closes #401
This commit is contained in:
parent
b869a16332
commit
3299f23ea2
|
|
@ -137,7 +137,7 @@ public final class LibvirtCreatePrivateTemplateFromVolumeCommandWrapper extends
|
|||
templateContent += "snapshot.name=" + dateFormat.format(date) + System.getProperty("line.separator");
|
||||
|
||||
try(FileOutputStream templFo = new FileOutputStream(templateProp);) {
|
||||
templFo.write(templateContent.getBytes());
|
||||
templFo.write(templateContent.getBytes("UTF-8"));
|
||||
templFo.flush();
|
||||
}catch(final IOException ex)
|
||||
{
|
||||
|
|
@ -175,4 +175,4 @@ public final class LibvirtCreatePrivateTemplateFromVolumeCommandWrapper extends
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue