mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #502 from svigneux/patch-1
Allow dots in domain_name
This commit is contained in:
commit
e9ce3096f3
@ -54,7 +54,7 @@ module VagrantPlugins
|
||||
config.default_prefix.to_s.concat("_")
|
||||
end
|
||||
domain_name << env[:machine].name.to_s
|
||||
domain_name.gsub!(/[^-a-z0-9_]/i, '')
|
||||
domain_name.gsub!(/[^-a-z0-9_\.]/i, '')
|
||||
domain_name << "_#{Time.now.utc.to_i}_#{SecureRandom.hex(10)}" if config.random_hostname
|
||||
domain_name
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user