summaryrefslogtreecommitdiff
path: root/lib/puppet
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/type/vcsrepo.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/type/vcsrepo.rb b/lib/puppet/type/vcsrepo.rb
index 9824726..2792cfe 100644
--- a/lib/puppet/type/vcsrepo.rb
+++ b/lib/puppet/type/vcsrepo.rb
@@ -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