one_vmm_kvm.rb.patch

patch for /usr/lib/one/mads/one_vmm_kvm.rb. Prevents shutdown of guests - Redmine Admin, 03/17/2009 08:06 PM

Download (849 Bytes)

View differences:

/usr/lib/one/mads/one_vmm_kvm.rb 2009-03-17 19:57:21.000000000 +0100
95 95
        end     
96 96

  
97 97
        write_response(action_name, stdout, stderr, args)
98

  
99
        command="define #{remote_deployment_file}"
100
        std=exec_kvm_command(action_host, command)
98 101
        
99 102
        #std_action("DEPLOY", "create #{args[3]}", args)
100 103
    end
......
238 241
                        info += "USEDMEMORY=" + (columns[1].to_i).to_s
239 242
                when 'State'
240 243
                      case columns[1]
241
                          when "running","blocked","shutdown","dying"
244
                          when "running","blocked","shutdown","dying","shut off"
242 245
                              state = "a"
243 246
                          when "paused"
244 247
                              state = "p"