diff options
author | Matthias Pigulla <mp@webfactory.de> | 2011-11-12 13:27:56 +0100 |
---|---|---|
committer | Matthias Pigulla <mp@webfactory.de> | 2011-11-12 13:27:56 +0100 |
commit | 89e2583aa9c3166bb163a6d195784a543ff02f34 (patch) | |
tree | c7af269e41983d3566b5eb4cb7ee3d349366c546 /lib/puppet | |
parent | 2723cbcd6ebca42471ee311420ec32afafcdad18 (diff) | |
download | puppet-vcsrepo-89e2583aa9c3166bb163a6d195784a543ff02f34.tar.gz puppet-vcsrepo-89e2583aa9c3166bb163a6d195784a543ff02f34.tar.bz2 |
Fix (#10788) - Avoid unnecessary remote operations in the vcsrepo type
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/type/vcsrepo.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/type/vcsrepo.rb b/lib/puppet/type/vcsrepo.rb index 9bf8311..83a8318 100644 --- a/lib/puppet/type/vcsrepo.rb +++ b/lib/puppet/type/vcsrepo.rb @@ -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 |