Skip to content

Commit

Permalink
don't check existence of remote filesystems
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Sierles authored and AJ Christensen committed Jul 6, 2009
1 parent 644886d commit 8407738
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chef/lib/chef/provider/mount/mount.rb
Expand Up @@ -39,7 +39,8 @@ def load_current_resource
@current_resource.device(@new_resource.device)
Chef::Log.debug("Checking for mount point #{@current_resource.mount_point}")

if( !::File.exists?(@new_resource.device) )
# only check for existence of non-remote devices
if( !@new_resource.device =~ /:/ && !::File.exists?(@new_resource.device) )
raise Chef::Exceptions::Mount, "Device #{@new_resource.device} does not exist"
elsif( !::File.exists?(@new_resource.mount_point) )
raise Chef::Exceptions::Mount, "Mount point #{@new_resource.mount_point} does not exist"
Expand Down

0 comments on commit 8407738

Please sign in to comment.