mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-06-05 06:43:06 -04:00
Replace invalid disk name characters with underscore
This commit is contained in:
parent
96d19264b6
commit
c063ca6100
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ module VagrantPlugins
|
|||
|
||||
if @name.is_a?(String) && @name.match(FILE_CHAR_REGEX)
|
||||
@logger.warn("Vagrant will remove detected invalid characters in '#{@name}' and convert the disk name into something usable for a file")
|
||||
@name.gsub!(FILE_CHAR_REGEX, "")
|
||||
@name.gsub!(FILE_CHAR_REGEX, "_")
|
||||
elsif @name == UNSET_VALUE
|
||||
if @primary
|
||||
@name = "vagrant_primary"
|
||||
|
|
|
|||
Loading…
Reference in a new issue