#3539 - Can't use alphanumeric patterns for box names in ansible.groups: Changed iteration logic for warning message and fixed regex typo

This commit is contained in:
Kamjar Gerami 2015-12-03 22:25:58 +01:00
parent af6a80472e
commit 5cbbbb5e28
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ module VagrantPlugins
# Verify if host range patterns exist and warn # Verify if host range patterns exist and warn
if config.groups.any? do |gm| if config.groups.any? do |gm|
gm.to_s[/(?:\[[a-z]:[a-z]\]|\[[0-9]+?:[0-9]+?\])/] gm.to_s[/(?:\[[a-z]:[a-z]\]|\[[0-9]+?:[0-9]+?\])/]
end end
@machine.ui.warn(I18n.t("vagrant.provisioners.ansible.ansible_host_pattern_detected")) @machine.ui.warn(I18n.t("vagrant.provisioners.ansible.ansible_host_pattern_detected"))
end end