don't recreate bare repo if it exists already (fixes #12303)

This commit is contained in:
Andreas Gerstmayr 2012-02-26 18:15:10 +01:00
parent b3de3a5c2b
commit c9bcd68953
1 changed files with 5 additions and 1 deletions

View File

@ -40,6 +40,8 @@ Puppet::Type.newtype(:vcsrepo) do
else
return false
end
when :bare
return is == :bare
end
end
@ -48,7 +50,9 @@ Puppet::Type.newtype(:vcsrepo) do
end
newvalue :bare, :required_features => [:bare_repositories] do
provider.create
if !provider.exists?
provider.create
end
end
newvalue :absent do