opennebula-5.2.0-upgradelosesvnc.diff

Roy Keene, 12/14/2016 05:12 PM

Download (777 Bytes)

View differences:

opennebula-5.2.0-upgradelosesvnc/src/onedb/local/4.13.85_to_4.90.0.rb 2016-12-12 22:15:28.272581398 -0600
851 851

  
852 852
    cluster_vnc = {}
853 853
    @db.transaction do
854
      @db.fetch("SELECT * FROM vm_pool WHERE state != 6") do |row|
854
      @db.fetch("SELECT * FROM vm_pool WHERE state = 3") do |row|
855 855
        doc = Nokogiri::XML(row[:body],nil,NOKOGIRI_ENCODING){|c| c.default_xml.noblanks}
856 856

  
857 857
        port = doc.root.at_xpath('TEMPLATE/GRAPHICS[translate(TYPE,"vnc","VNC")="VNC"]/PORT').text.to_i rescue nil