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:
parent
1a12129c8c
commit
6c42d7915f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user