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:
parent
c0cc160906
commit
8028807600
@ -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
|
||||
|
@ -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?(
|
||||
|
Loading…
x
Reference in New Issue
Block a user