From d3363ae38c7d0003871280b211388c52c2a041ac Mon Sep 17 00:00:00 2001 From: ljay79 Date: Wed, 14 Oct 2015 21:53:47 +0200 Subject: [PATCH] Don't check for EBS bind mounts if they are not available on non EC2 instances --- deploy/definitions/opsworks_deploy_dir.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/definitions/opsworks_deploy_dir.rb b/deploy/definitions/opsworks_deploy_dir.rb index 2e9ec1d5c5..0a1850f2de 100644 --- a/deploy/definitions/opsworks_deploy_dir.rb +++ b/deploy/definitions/opsworks_deploy_dir.rb @@ -4,7 +4,7 @@ # bind mounts have been made due to a race condition # with the automounter - if node[:opsworks_initial_setup].attribute?(:bind_mounts) + if node[:opsworks_initial_setup].attribute?(:bind_mounts) && infrastructure_class?('ec2') node[:opsworks_initial_setup][:bind_mounts][:mounts].each do |dir, source| bash "Check for bind mounts before creating the deploy directory" do code <<-EOH