1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-05 09:17:41 +03:00

B #3439: polish onevcenter tool (#3475)

* B #3439: polish the onevcenter tool

Signed-off-by: Carlos J. Herrera Matos <cherrera@opennebula.systems>

* B #3439: polish the onevcenter tool

Signed-off-by: Carlos J. Herrera Matos <cherrera@opennebula.systems>

* M #~: fix linter

Signed-off-by: Carlos J. Herrera Matos <cherrera@opennebula.systems>
This commit is contained in:
Carlos J. Herrera 2019-07-05 09:43:29 -04:00 committed by Tino Vázquez
parent 836b720c2e
commit 35a6a8a724

View File

@ -181,6 +181,12 @@ CommandParser::CmdParser.new(ARGV) do
importer.retrieve_resources(helper.parse_opts(options))
indexes = importer.get_indexes(args.first)
if indexes.nil?
raise "Could not get any unimported #{options[:object]}"\
" resources info in host: #{options[:host]} with"\
" this input: #{args.first}"
end
importer.process_import(indexes) do |object_info|
helper.cli_dialogue(object_info)
end