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:
parent
304db6457b
commit
68fd921150
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user