Revision e8c40e9d

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/host.rb
150 150
            rp_name          = (parent_prefix.empty? ? "" : parent_prefix + "/")
151 151
            rp_name         += rp.name
152 152

  
153
            rp_info << "\nRESOURCE_POOL = ["
153
            rp_info << "\nVCENTER_RESOURCE_POOL = ["
154 154
            rp_info << "NAME=\"#{rp_name}\","
155 155
            rp_info << "CPU_EXPANDABLE=#{cpu_expandable},"
156 156
            rp_info << "CPU_LIMIT=#{cpu_limit},"
......
211 211

  
212 212
    def monitor_vms
213 213
        str_info = ""
214
        @monitored_vms = Set.new
214 215
        resource_pools.each do |rp|
215 216
            str_info << monitor_vms_in_rp(rp)
216 217
        end
......
258 259
                    number = extraconfig_vmid[0][:value]
259 260
                end
260 261

  
262
                if number != -1
263
                    next if @monitored_vms.include? number
264
                    @monitored_vms << number
265
                end
266

  
261 267
                vm.monitor
262 268

  
263 269
                next if !vm["config"]

Also available in: Unified diff