[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-9095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15039766#comment-15039766
 ] 

ASF GitHub Bot commented on CLOUDSTACK-9095:
--------------------------------------------

Github user jburwell commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1142#discussion_r46650221
  
    --- Diff: 
plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java 
---
    @@ -1276,6 +1277,53 @@ public String toString() {
             }
         }
     
    +    public static class MetadataDef {
    +        Map<String, Object> customNodes = new HashMap<>();
    +
    +        public <T> T getMetadataNode(Class<T> fieldClass) {
    +            T field = (T) customNodes.get(fieldClass.getName());
    +            if (field == null) {
    +                try {
    +                    field = fieldClass.newInstance();
    +                    customNodes.put(field.getClass().getName(), field);
    +                } catch (InstantiationException e) {
    +                } catch (IllegalAccessException e) {
    --- End diff --
    
    Consolidate to multi-catch and log the exception details to ``DEBUG`` 
explaining why the exceptions were ignored.


> Hypervisor changes to support UserData for Nuage VSP
> ----------------------------------------------------
>
>                 Key: CLOUDSTACK-9095
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9095
>             Project: CloudStack
>          Issue Type: Improvement
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>            Reporter: Nick Livens
>            Assignee: Nick Livens
>
> Hypervisor changes to support UserData for Nuage VSP



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to