Revision 9fc2bcc8 src/vmm_mad/remotes/lib/vcenter_driver/datastore.rb

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/datastore.rb
18 18
            item_name = item._ref
19 19
            @items[item_name.to_sym] = Datastore.new(item)
20 20
        end
21

  
22
        VIClient.get_entities(@item, "StoragePod").each do |sp|
23
            VIClient.get_entities(sp, "Datastore").each do |item|
24
                item_name = item._ref
25
                @items[item_name.to_sym] = Datastore.new(item)
26
            end
27
        end
28
    end
29

  
30
    def monitor
31
        monitor = ""
32
        @items.values.each do |ds|
33
            monitor << "VCENTER_DATASTORE=\"#{ds['name']}\"\n"
34
        end
35
        monitor
21 36
    end
22 37

  
23 38
    ########################################################################

Also available in: Unified diff