1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-04 17:47:00 +03:00

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

Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
This commit is contained in:
Carlos J. Herrera 2021-03-24 18:05:02 -04:00 committed by GitHub
parent 597c0d9cb6
commit fed6908188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -261,8 +261,12 @@ CommandParser::CmdParser.new(ARGV) do
vi_client,
options[:object])
importer.retrieve_resources(helper.parse_opts(options))
indexes = importer.get_indexes(args.first)
if options[:object] == "networks" && !args.first.nil?
indexes = args.first
else
importer.retrieve_resources(helper.parse_opts(options))
indexes = importer.get_indexes(args.first)
end
importer.process_import(indexes, options)

View File

@ -576,7 +576,6 @@ 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(
@ -585,7 +584,6 @@ module VCenterDriver
)
network[vc_network_ref][:network_type] = network_type
network[vc_network_ref][:type] = network_type
# end
# Determine if the network must be excluded
network[vc_network_ref][:excluded] = exclude_network?(