summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBryan Jen <bryan.jen@gmail.com>2015-10-16 08:51:13 -0700
committerBryan Jen <bryan.jen@gmail.com>2015-10-16 08:51:13 -0700
commit99e8b2e28ce9541202b8b2438a92ee8ac2b03d6a (patch)
treebba378ad93598ce3adfa11bcfcf5ff73003e0360 /lib
parent279be07607dd132f9446291cf1afa5ef2320632a (diff)
parentbf0f40ae4efa9095ca9a877acefdb781e1fbf1cd (diff)
downloadpuppet-vcsrepo-99e8b2e28ce9541202b8b2438a92ee8ac2b03d6a.tar.gz
puppet-vcsrepo-99e8b2e28ce9541202b8b2438a92ee8ac2b03d6a.tar.bz2
Merge pull request #273 from hunner/fix_trustcert
Fix :false to be default value
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/provider/vcsrepo/svn.rb2
-rw-r--r--lib/puppet/type/vcsrepo.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/provider/vcsrepo/svn.rb b/lib/puppet/provider/vcsrepo/svn.rb
index ba77464..fccfaa5 100644
--- a/lib/puppet/provider/vcsrepo/svn.rb
+++ b/lib/puppet/provider/vcsrepo/svn.rb
@@ -63,7 +63,7 @@ Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo)
args.push('--config-dir', @resource.value(:configuration))
end
- if @resource.value(:trust_server_cert)
+ if @resource.value(:trust_server_cert) != :false
args.push('--trust-server-cert')
end
diff --git a/lib/puppet/type/vcsrepo.rb b/lib/puppet/type/vcsrepo.rb
index da1dcde..290bdad 100644
--- a/lib/puppet/type/vcsrepo.rb
+++ b/lib/puppet/type/vcsrepo.rb
@@ -231,7 +231,7 @@ Puppet::Type.newtype(:vcsrepo) do
newparam :trust_server_cert do
desc "Trust server certificate"
newvalues(:true, :false)
- defaultto false
+ defaultto :false
end
autorequire(:package) do