-
-
Save dmamolina/8f8499704cbee0e5db84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/cli/etc/onevm.yaml b/src/cli/etc/onevm.yaml | |
index bcc26c1..aae7fa3 100644 | |
--- a/src/cli/etc/onevm.yaml | |
+++ b/src/cli/etc/onevm.yaml | |
@@ -39,6 +39,10 @@ | |
:desc: Time since the VM was submitted | |
:size: 10 | |
+:DESCRIPTION: | |
+ :desc: DESCRIPTION | |
+ :size: 10 | |
+ | |
:default: | |
- :ID | |
- :USER | |
@@ -49,3 +53,4 @@ | |
- :UMEM | |
- :HOST | |
- :TIME | |
+- :DESCRIPTION | |
diff --git a/src/cli/one_helper/onevm_helper.rb b/src/cli/one_helper/onevm_helpe | |
index e6bafad..227c2b3 100644 | |
--- a/src/cli/one_helper/onevm_helper.rb | |
+++ b/src/cli/one_helper/onevm_helper.rb | |
@@ -128,8 +128,12 @@ class OneVMHelper < OpenNebulaHelper::OneHelper | |
OpenNebulaHelper.period_to_str(dtime, false) | |
end | |
+ column :DESCRIPTION, "DESCRIPTION", :size=>12 do |d| | |
+ d["TEMPLATE"]["DESCRIPTION"] | |
+ end | |
+ | |
default :ID, :USER, :GROUP, :NAME, :STAT, :UCPU, :UMEM, :HOST, | |
- :TIME | |
+ :TIME, :DESCRIPTION | |
end | |
table |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment