From 5cbbbb5e288951d7b12d3ecb9559a3875cc72cd3 Mon Sep 17 00:00:00 2001 From: Kamjar Gerami Date: Thu, 3 Dec 2015 22:25:58 +0100 Subject: [PATCH] #3539 - Can't use alphanumeric patterns for box names in ansible.groups: Changed iteration logic for warning message and fixed regex typo --- plugins/provisioners/ansible/provisioner/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/provisioners/ansible/provisioner/base.rb b/plugins/provisioners/ansible/provisioner/base.rb index b61426037..cf88266f6 100644 --- a/plugins/provisioners/ansible/provisioner/base.rb +++ b/plugins/provisioners/ansible/provisioner/base.rb @@ -114,7 +114,7 @@ module VagrantPlugins # Verify if host range patterns exist and warn 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 @machine.ui.warn(I18n.t("vagrant.provisioners.ansible.ansible_host_pattern_detected")) end