From 82e0a4141c9b23dc950a69af4e2e27231687d388 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Tue, 28 Feb 2017 12:11:41 +0100 Subject: [PATCH] F #5005: Add UID information to onevm command --- src/cli/one_helper/onevm_helper.rb | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/cli/one_helper/onevm_helper.rb b/src/cli/one_helper/onevm_helper.rb index 6545e70d6c..e76cb424f6 100644 --- a/src/cli/one_helper/onevm_helper.rb +++ b/src/cli/one_helper/onevm_helper.rb @@ -1015,11 +1015,20 @@ in the frontend machine. d["SEQ"] end - column :HOST, "Host name of the VM container", :left, :size=>15 do |d| + column :UID, "UID of the user that performed the action", + :left, :size=>4 do |d| + d["UID"] + end + + column :REQ, "Request ID of the action", :left, :size=>5 do |d| + d["REQUEST_ID"] + end + + column :HOST, "Host name of the VM container", :left, :size=>12 do |d| d["HOSTNAME"] end - column :"ACTION", "VM state change action", :left, :size=>16 do |d| + column :"ACTION", "VM state change action", :left, :size=>10 do |d| VirtualMachine.get_history_action d["ACTION"] end @@ -1049,7 +1058,7 @@ in the frontend machine. OpenNebulaHelper.short_period_to_str(dtime) end - default :SEQ, :HOST, :ACTION, :DS, :START, :TIME, :PROLOG + default :SEQ, :UID, :REQ, :HOST, :ACTION, :DS, :START, :TIME, :PROLOG end vm_hash=vm.to_hash