From 63292fba967fb0e9f2e7460e41968fa713c49e16 Mon Sep 17 00:00:00 2001 From: Dreamcat4 Date: Sun, 14 Nov 2010 18:30:14 +0000 Subject: [PATCH] Don't clear the run_list always. Allow the run_list on the chef server to be used! --- lib/vagrant/provisioners/chef.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/vagrant/provisioners/chef.rb b/lib/vagrant/provisioners/chef.rb index 4a839d394..0c07c9d42 100644 --- a/lib/vagrant/provisioners/chef.rb +++ b/lib/vagrant/provisioners/chef.rb @@ -91,13 +91,12 @@ module Vagrant @log_level = :info @json = { :instance_role => "vagrant", - :run_list => [] } end # Returns the run list for the provisioning def run_list - json[:run_list] + json[:run_list] ||= [] end # Sets the run list to the specified value