From 15b00394675f8951a7a9dcca9e3f1986e7aa8a66 Mon Sep 17 00:00:00 2001 From: Michael K Date: Mon, 22 Dec 2014 21:08:56 +0100 Subject: [PATCH] Use provisioner type attribute Vagrant changed the provisioner name attribute to type in version 1.7.1. --- lib/vagrant-cachier/cap/linux/chef_file_cache_path.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-cachier/cap/linux/chef_file_cache_path.rb b/lib/vagrant-cachier/cap/linux/chef_file_cache_path.rb index c173b52..52759a0 100644 --- a/lib/vagrant-cachier/cap/linux/chef_file_cache_path.rb +++ b/lib/vagrant-cachier/cap/linux/chef_file_cache_path.rb @@ -6,7 +6,7 @@ module VagrantPlugins def self.chef_provisioner?(machine) provisioners = machine.config.vm.provisioners chef_provisioners = [:chef_solo, :chef_client] - compat_provisioners = provisioners.keep_if { |p| chef_provisioners.include? p.name } + compat_provisioners = provisioners.keep_if { |p| chef_provisioners.include? p.name || p.type } if compat_provisioners.size > 1 raise "One machine is using multiple chef provisioners, which is unsupported."