1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

M #-: minor change in DDC CLI

This commit is contained in:
Alejandro Huertas 2020-05-25 11:59:12 +02:00
parent 1a565338c8
commit e5c5fa923e
No known key found for this signature in database
GPG Key ID: 3044AF06BE405104

View File

@ -542,9 +542,10 @@ CommandParser::CmdParser.new(ARGV) do
command %i[datastore list], datastore_list_desc,
:options => ONE_OPTIONS + [OpenNebulaHelper::DESCRIBE] do
datastore_helper = OneDatastoreHelper.new
datastore = OneProvision::Datastore.new
datastore = OneProvision::Datastore.new.get
datastore.map! {|d| d.to_hash['DATASTORE'] }
datastore_helper.format_pool(options).show(datastore.get)
datastore_helper.format_pool(options).show(datastore)
0
end
@ -576,9 +577,10 @@ CommandParser::CmdParser.new(ARGV) do
vnet_list_desc,
:options => ONE_OPTIONS + [OpenNebulaHelper::DESCRIBE] do
vnet_helper = OneVNetHelper.new
network = OneProvision::Network.new
network = OneProvision::Network.new.get
network.map! {|n| n.to_hash['VNET'] }
vnet_helper.format_pool(options).show(network.get, options)
vnet_helper.format_pool(options).show(network, options)
0
end