From 3d0ffb2c7de7e0d5a3d3260cd7bcc931a1852124 Mon Sep 17 00:00:00 2001 From: Glen Mailer Date: Sun, 10 Jan 2016 22:05:43 +0000 Subject: [PATCH] Don't do anything with puppet_version is not set. --- lib/vagrant-puppet-install/action/install_puppet.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/vagrant-puppet-install/action/install_puppet.rb b/lib/vagrant-puppet-install/action/install_puppet.rb index 2f9281d..cab03bf 100644 --- a/lib/vagrant-puppet-install/action/install_puppet.rb +++ b/lib/vagrant-puppet-install/action/install_puppet.rb @@ -59,7 +59,9 @@ def find_install_script end def default_install_url - if windows_guest? + if @machine.config.puppet_install.puppet_version.nil? + nil + elsif windows_guest? # No Windows Version yet else if ( @machine.config.puppet_install.puppet_version == 'latest' || @machine.config.puppet_install.puppet_version.match(/^4\..+/) )