Skip to content

Commit

Permalink
Fix voxpupuli/puppet-archive bug voxpupuli/puppet-archive#242
Browse files Browse the repository at this point in the history
Fix Test
  • Loading branch information
elconas committed Nov 20, 2016
1 parent fb56bbd commit c30dbd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ gem 'rubocop', '< 0.42.0'

gem 'json_pure', '< 2.0.2'
gem 'net-http-persistent', '<= 2.9.4', :require => false if RUBY_VERSION < '2.0.0'
gem 'addressable', '<= 2.4.0', :require => false if RUBY_VERSION < '2.0.0'

group :development do
gem 'simplecov'
Expand Down
8 changes: 5 additions & 3 deletions manifests/plugin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,20 @@

if $digest_string {
$checksum_verify = true
$checksum = $digest_string
$checksum = $digest_string
$checksum_type = $digest_type
} else {
$checksum_verify = false
$checksum = undef
$checksum = undef
$checksum_type = undef
}

archive { $plugin:
source => $download_url,
path => "${::jenkins::plugin_dir}/${plugin}",
checksum_verify => $checksum_verify,
checksum => $checksum,
checksum_type => $digest_type,
checksum_type => $checksum_type,
proxy_server => $::jenkins::proxy::url,
cleanup => false,
extract => false,
Expand Down

0 comments on commit c30dbd9

Please # to comment.