From 9d7433cbe724f46dde93788d347f5d557b44e7f2 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 2 Aug 2011 23:17:46 -0700 Subject: [PATCH] Chef client allow empty run list --- lib/vagrant/provisioners/chef_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/provisioners/chef_client.rb b/lib/vagrant/provisioners/chef_client.rb index 84f968543..b7f0136a9 100644 --- a/lib/vagrant/provisioners/chef_client.rb +++ b/lib/vagrant/provisioners/chef_client.rb @@ -34,7 +34,7 @@ module Vagrant errors.add(I18n.t("vagrant.config.chef.server_url_empty")) if !chef_server_url || chef_server_url.strip == "" errors.add(I18n.t("vagrant.config.chef.validation_key_path")) if !validation_key_path - errors.add(I18n.t("vagrant.config.chef.run_list_empty")) if run_list && run_list.empty? + errors.add(I18n.t("vagrant.config.chef.run_list_empty")) if @run_list && @run_list.empty? end end