Allow dots in domain_name

As we are sometimes using FQDNs as box names, it would be nice to keep the dots. 
I tested this minor change on version 0.0.32 and it creates domain/disk correctly. 

If you need me to do anything else, just let me know. Thanks
This commit is contained in:
Simon Vigneux 2015-11-06 12:23:16 -05:00
parent 883db81df5
commit 70e0f4e6c7

View File

@ -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