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

F #~: improve import network time (#996)

Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
This commit is contained in:
Carlos J. Herrera 2021-03-18 09:53:38 -04:00 committed by GitHub
parent c0cc160906
commit 8028807600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 10 deletions

View File

@ -261,7 +261,10 @@ CommandParser::CmdParser.new(ARGV) do
vi_client,
options[:object])
importer.process_import(args.first, options)
importer.retrieve_resources(helper.parse_opts(options))
indexes = importer.get_indexes(args.first)
importer.process_import(indexes, options)
importer.stdout
rescue StandardError => e

View File

@ -576,15 +576,15 @@ module VCenterDriver
# Initialize opts hash used to inject data into one template
opts = {}
if full_process
# Add network type to network hash
network_type = \
VCenterDriver::Network.get_network_type(
vc_network,
vc_network_name
)
network[vc_network_ref][:network_type] = network_type
end
# if full_process
# Add network type to network hash
network_type = \
VCenterDriver::Network.get_network_type(
vc_network,
vc_network_name
)
network[vc_network_ref][:network_type] = network_type
# end
# Determine if the network must be excluded
network[vc_network_ref][:excluded] = exclude_network?(