From 35cfd4b5d46f6c144ccaddfb948203ccde6b9521 Mon Sep 17 00:00:00 2001 From: Farzad FARID Date: Sat, 13 Dec 2014 16:24:49 +0100 Subject: Fix for MODULES-1597: "format" is a file not a directory The "format" entry in a SVN directory is a file, not a directory. --- lib/puppet/provider/vcsrepo/svn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/puppet/provider/vcsrepo/svn.rb b/lib/puppet/provider/vcsrepo/svn.rb index 316a3a1..a1b1714 100644 --- a/lib/puppet/provider/vcsrepo/svn.rb +++ b/lib/puppet/provider/vcsrepo/svn.rb @@ -24,7 +24,7 @@ Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo) if File.directory?(@resource.value(:path)) # :path is an svn checkout return true if File.directory?(File.join(@resource.value(:path), '.svn')) - if File.directory?(File.join(@resource.value(:path), 'format')) + if File.file?(File.join(@resource.value(:path), 'format')) # :path is an svn server return true if svnlook('uuid', @resource.value(:path)) end -- cgit v1.2.3