mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09: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>
(cherry picked from commit 35a6a8a724)
This commit is contained in:
1 parent
2e1dcd3f73
commit
6ab813aedf
1 file changed
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user