Github user DaanHoogland commented on a diff in the pull request:
https://github.com/apache/cloudstack/pull/464#discussion_r32503267
--- Diff:
plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java
---
@@ -2265,7 +2265,11 @@ public Answer forgetObject(ForgetObjectCmd cmd) {
}
private static String deriveTemplateUuidOnHost(VmwareHypervisorHost
hyperHost, String storeIdentifier, String templateName) {
- String templateUuid = UUID.nameUUIDFromBytes((templateName + "@" +
storeIdentifier + "-" +
hyperHost.getMor().getValue()).getBytes("UTF-8")).toString();
+ try{
+ String templateUuid = UUID.nameUUIDFromBytes((templateName +
"@" + storeIdentifier + "-" +
hyperHost.getMor().getValue()).getBytes("UTF-8")).toString();
+ }catch(UnsupportedEncodingException e){
+ s_logger.warn("Unable to generate UUID due to unexpected
encoding error."+e);
--- End diff --
can you change to: "Unable to generate UUID due to unexpected encoding
error: " + e.getLocalizedMessage()
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---