Revision 601d4bea src/vmm_mad/remotes/lib/vcenter_driver/vi_helper.rb

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/vi_helper.rb
57 57
        return element
58 58
    end
59 59

  
60
    def self.find_persistent_image_by_source(source, pool)
61
        element = pool.select{|e|
62
            e["SOURCE"] == source &&
63
            e["PERSISTENT"] == "1"
64
        }.first rescue nil
65

  
66
        return element
67
    end
68

  
60 69
    def self.find_vcenter_vm_by_name(one_vm, host, vi_client)
61 70
        # Let's try to find the VM object only by its name
62 71
        # Let's build the VM name

Also available in: Unified diff