Skip to content

Commit

Permalink
Fixing guard on ruby_block[validate-key #{key}]
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean OMeara committed Oct 23, 2015
1 parent 5ed3ae1 commit 3a44894
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ def install_key_from_keyserver(key, keyserver, key_proxy)

ruby_block "validate-key #{key}" do
block do
fail "The key #{key} is no longer valid and cannot be used for an apt repository." unless key_is_valid('apt-key list', key.upcase)
fail "The key #{key} is no longer valid and cannot be used for an apt repository."
end
not_if { key_is_valid('apt-key list', key.upcase) }
end
end

Expand Down

0 comments on commit 3a44894

Please sign in to comment.