1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

L #-: Linting offering to rubocop God

This commit is contained in:
Tino Vazquez 2020-03-25 16:28:35 +01:00
parent 1a12129c8c
commit 6c42d7915f
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE
2 changed files with 6 additions and 2 deletions

View File

@ -41,7 +41,7 @@ def unindent(s)
s.gsub!(/^ {#{spaces}}/, '')
end
hid = ARGV[1]
hid = ARGV[1]
_hname = ARGV[2]
client = OpenNebula::Client.new
@ -91,3 +91,5 @@ vmpool.each do |vm|
end
puts result
# rubocop:enable Layout/ArgumentAlignment

View File

@ -18,6 +18,7 @@
require_relative '../../../lib/numa_common'
# This module extracts NUMA information from a host for firecracker
module NUMA
def self.node_to_template(node, nid)
@ -78,7 +79,8 @@ module NUMA
core_id = File.read("#{core_path}/core_id").chomp
nodes[node_id]['cores'] << {'id' => core_id, 'cpus' => siblings}
nodes[node_id]['cores'] << { 'id' => core_id,
'cpus' => siblings }
rescue StandardError
next
end