mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-05 09:17:41 +03:00
* 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:
parent
836b720c2e
commit
35a6a8a724
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user