Revision 7beab339 src/vmm_mad/remotes/lib/vcenter_driver/vi_helper.rb

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/vi_helper.rb
73 73
            recursive: true
74 74
        })
75 75

  
76
        vcenter_vm = view.view.find{ |v| v.name == vm_name } if view.view
76
        vcenter_vm = view.view.find{ |v| v.name == vm_name } if !!view.view && !view.view.empty?
77 77

  
78 78
        view.DestroyView # Destroy the view
79 79

  

Also available in: Unified diff