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:
parent
762f33c0ea
commit
cc9233e64b
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user