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>
(cherry picked from commit 35a6a8a724)
This commit is contained in:
Carlos J. Herrera authored and Tino Vazquez committed 2019-07-05 15:45:42 +02:00
1 parent 2e1dcd3f73
commit 6ab813aedf
1 file changed
+6
+6
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