1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-02 09:47:00 +03:00

Feature #1112: onecluster show id param is not optional

This commit is contained in:
Carlos Martín 2012-02-24 18:28:15 +01:00
parent 304db6457b
commit 68fd921150

View File

@ -92,9 +92,8 @@ cmd=CommandParser::CmdParser.new(ARGV) do
Shows information for the given Cluster
EOT
command :show, show_desc,[:clusterid, nil], :options=>OpenNebulaHelper::XML do
cluster = args[0] || OpenNebula::Cluster::SELF
helper.show_resource(cluster,options)
command :show, show_desc,:clusterid, :options=>OpenNebulaHelper::XML do
helper.show_resource(args[0],options)
end
end