1
0
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:
Tino Vázquez 2022-09-12 15:41:59 +02:00
parent 4a14927ef5
commit 2342bf9507
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -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)