diff options
author | Aaron Stone <aaron@serendipity.cx> | 2014-12-16 12:02:54 -0800 |
---|---|---|
committer | Aaron Stone <aaron@serendipity.cx> | 2014-12-16 12:02:54 -0800 |
commit | 2295710e094ef849052e4b785819a1ba3a2c0fc6 (patch) | |
tree | f411350fbadbc9bccbdf6c6d8ff2ad09c730b694 | |
parent | 5b0fdb0b221c1096c7260b016fb9966c7557ef15 (diff) | |
parent | 35cfd4b5d46f6c144ccaddfb948203ccde6b9521 (diff) | |
download | puppet-vcsrepo-2295710e094ef849052e4b785819a1ba3a2c0fc6.tar.gz puppet-vcsrepo-2295710e094ef849052e4b785819a1ba3a2c0fc6.tar.bz2 |
Merge pull request #223 from infopro-digital/MODULES-1597
Fix for MODULES-1597: "format" is a file not a directory
-rw-r--r-- | lib/puppet/provider/vcsrepo/svn.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |