Fix (#10788) - Avoid unnecessary remote operations in the vcsrepo type
This commit is contained in:
parent
2723cbcd6e
commit
89e2583aa9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user