Merge pull request #61 from sciurus/0.0.7_parallel

Enable Parallelization
This commit is contained in:
Dmitry Vasilets 2013-09-25 11:11:45 -07:00
commit 15a11146a6
2 changed files with 3 additions and 2 deletions

View File

@ -9,9 +9,10 @@ module VagrantPlugins
end end
def call(env) def call(env)
require 'securerandom'
env[:domain_name] = env[:root_path].basename.to_s.dup env[:domain_name] = env[:root_path].basename.to_s.dup
env[:domain_name].gsub!(/[^-a-z0-9_]/i, "") env[:domain_name].gsub!(/[^-a-z0-9_]/i, "")
env[:domain_name] << "_#{Time.now.to_i}" env[:domain_name] << "_#{SecureRandom.hex}"
# Check if the domain name is not already taken # Check if the domain name is not already taken
domain = ProviderLibvirt::Util::Collection.find_matching( domain = ProviderLibvirt::Util::Collection.find_matching(

View File

@ -25,7 +25,7 @@ module VagrantPlugins
Config Config
end end
provider 'libvirt' do provider('libvirt', parallel: true) do
# Setup logging and i18n # Setup logging and i18n
setup_logging setup_logging
setup_i18n setup_i18n