mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-17 02:03:15 +09:00
feature #1640: show all disk info with --all in onevm show
This commit is contained in:
1 parent
762f33c0ea
commit
cc9233e64b
2 files changed
+8
-2
No files matched your search
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user