Fix findbugs encoding issue in VmwareStorageProcessor.java Any encoding would do fine as it's just used to generate a UUID. Sticking with UTF-8 for consistency

Signed-off-by: Daan Hoogland <daan.hoogland@gmail.com>

This closes #460
This commit is contained in:
Rafael da Fonseca 2015-06-15 19:15:55 +02:00 committed by Daan Hoogland
parent 9bb920af65
commit 9f2ebdf443

View File

@ -2265,7 +2265,7 @@ public class VmwareStorageProcessor implements StorageProcessor {
}
private static String deriveTemplateUuidOnHost(VmwareHypervisorHost hyperHost, String storeIdentifier, String templateName) {
String templateUuid = UUID.nameUUIDFromBytes((templateName + "@" + storeIdentifier + "-" + hyperHost.getMor().getValue()).getBytes()).toString();
String templateUuid = UUID.nameUUIDFromBytes((templateName + "@" + storeIdentifier + "-" + hyperHost.getMor().getValue()).getBytes("UTF-8")).toString();
templateUuid = templateUuid.replaceAll("-", "");
return templateUuid;
}