mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
M #-: Fix CLI output for onehost (#2930)
* In case of incomplete monitoring data, the `onehost show` command shows error (cherry picked from commit ff35f07fbaa9f734fc01e7c12936a33345b87153)
This commit is contained in:
parent
b524135376
commit
f42575a4c4
@ -794,6 +794,8 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
|
||||
numa_nodes.each do |node|
|
||||
mon_node = monitoring.find {|x| x['NODE_ID'] == node['NODE_ID'] }
|
||||
|
||||
next if mon_node.nil?
|
||||
|
||||
node['MEMORY']['FREE'] = mon_node['MEMORY']['FREE']
|
||||
node['MEMORY']['USED'] = mon_node['MEMORY']['USED']
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user