F #2160: Changed RUNNING VMS name in onehost command

This commit is contained in:
juanmont authored and Ruben S. Montero committed 2018-06-26 10:57:04 +02:00
1 parent e31bae0425
commit ea589d024d
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -13,8 +13,8 @@
:size: 9
:left: true
:RVM:
:desc: Number of Virtual Machines running
:TVM:
:desc: Total Virtual Machines allocated to the Host
:size: 3
:ZVM:
@@ -70,7 +70,7 @@
- :ID
- :NAME
- :CLUSTER
- :RVM
- :TVM
- :ALLOCATED_CPU
- :ALLOCATED_MEM
- :STAT
+2 -2
View File
@@ -105,7 +105,7 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
OpenNebulaHelper.cluster_str(d["CLUSTER"])
end
column :RVM, "Number of Virtual Machines running", :size=>3 do |d|
column :TVM, "Total Virtual Machines allocated to the Host", :size=>3 do |d|
d["HOST_SHARE"]["RUNNING_VMS"] || 0
end
@@ -210,7 +210,7 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
OneHostHelper.state_to_str(d["STATE"])
end
default :ID, :NAME, :CLUSTER, :RVM, :ALLOCATED_CPU, :ALLOCATED_MEM, :STAT
default :ID, :NAME, :CLUSTER, :TVM, :ALLOCATED_CPU, :ALLOCATED_MEM, :STAT
end
table