mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #885 from brianjmurrell/patch-1
Don't add _ after user defined default_prefix
This commit is contained in:
@@ -51,7 +51,7 @@ module VagrantPlugins
|
||||
# don't have any prefix, not even "_"
|
||||
''
|
||||
else
|
||||
config.default_prefix.to_s.dup.concat('_')
|
||||
config.default_prefix.to_s.dup
|
||||
end
|
||||
domain_name << env[:machine].name.to_s
|
||||
domain_name.gsub!(/[^-a-z0-9_\.]/i, '')
|
||||
|
||||
@@ -14,7 +14,7 @@ describe VagrantPlugins::ProviderLibvirt::Action::SetNameOfDomain do
|
||||
end
|
||||
|
||||
it 'builds simple domain name' do
|
||||
@env.default_prefix = 'pre'
|
||||
@env.default_prefix = 'pre_'
|
||||
dmn = VagrantPlugins::ProviderLibvirt::Action::SetNameOfDomain.new(Object.new, @env)
|
||||
dmn.build_domain_name(@env).should eq('pre_')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user