Revision 06abfef2 src/cli/onevm

View differences:

src/cli/onevm
400 400
        host_id = args[1]
401 401
        verbose = "migrating to #{host_id}"
402 402

  
403
        params  = [host_id]
404
        params << options[:enforce] if !options[:enforce].nil?
405

  
406 403
        helper.perform_actions(args[0],options,verbose) do |vm|
407
            if options[:live]
408
                vm.live_migrate(*params)
409
            else
410
                vm.migrate(*params)
411
            end
404
            vm.migrate( host_id,
405
                        options[:live]==true,
406
                        options[:enforce]==true)
412 407
        end
413 408
    end
414 409

  

Also available in: Unified diff