1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #1640: show all disk info with --all in onevm show

This commit is contained in:
Javi Fontan 2013-02-26 16:06:20 +01:00
parent 762f33c0ea
commit cc9233e64b
2 changed files with 8 additions and 2 deletions

View File

@ -65,6 +65,12 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
:format => Time
}
ALL_TEMPLATE = {
:name => "all",
:large => "--all",
:description => "Show all template data"
}
def self.rname
"VM"
end
@ -340,7 +346,7 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
while vm.has_elements?("/VM/TEMPLATE/DISK")
vm.delete_element("/VM/TEMPLATE/DISK")
end
end if !options[:all]
puts
end

View File

@ -650,7 +650,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
EOT
command :show, show_desc, :vmid,
:options=>OpenNebulaHelper::XML do
:options=>[OpenNebulaHelper::XML, OneVMHelper::ALL_TEMPLATE] do
helper.show_resource(args[0],options)
end