Fix (#10788) - Avoid unnecessary remote operations in the vcsrepo type

This commit is contained in:
Matthias Pigulla 2011-11-12 13:27:56 +01:00
parent 2723cbcd6e
commit 89e2583aa9
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ Puppet::Type.newtype(:vcsrepo) do
prov = @resource.provider
if prov
if prov.working_copy_exists?
prov.latest? ? :latest : :present
(@should.include?(:latest) && prov.latest?) ? :latest : :present
elsif prov.class.feature?(:bare_repositories) and prov.bare_exists?
:bare
else