mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
L #-: Fix linting issue
This commit is contained in:
parent
4a14927ef5
commit
2342bf9507
@ -107,7 +107,8 @@ begin
|
||||
domcap_xml = REXML::Document.new(domcapabilities)
|
||||
domcap_xml = domcap_xml.root
|
||||
|
||||
cpu_mode_custom_elem = domcap_xml.elements["cpu/mode[@name='custom',@supported='yes']"]
|
||||
cpu_mode_xpath = "cpu/mode[@name='custom',@supported='yes']"
|
||||
cpu_mode_custom_elem = domcap_xml.elements[cpu_mode_xpath]
|
||||
|
||||
cpu_mode_custom_elem.elements.each("model[@usable='no']") do |m|
|
||||
models.delete(m.text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user