From 64d796f627906377e2f52d0c890937be84951453 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Wed, 29 Oct 2014 11:11:31 -0400 Subject: [PATCH] Added type check (causing error with boolean value). --- recipes/install.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/install.rb b/recipes/install.rb index ae48dab..98591ce 100644 --- a/recipes/install.rb +++ b/recipes/install.rb @@ -69,7 +69,7 @@ false end end - if(node[:s3fs_fuse][:bluepill] && File.exists?(File.join(node[:s3fs_fuse][:bluepill][:conf_dir], 's3fs.pill'))) + if(node[:s3fs_fuse][:bluepill].kind_of?(Array) && File.exists?(File.join(node[:s3fs_fuse][:bluepill][:conf_dir], 's3fs.pill'))) notifies :stop, 'bluepill_service[s3fs]' notifies :start, 'bluepill_service[s3fs]' end