Skip to content

Commit

Permalink
Merge pull request #1011 from Conzar/ppa-ubuntu-fix
Browse files Browse the repository at this point in the history
Fixed reading conditions for gpg file for Ubuntu versions 21.04 and later.
  • Loading branch information
LukasAud authored Feb 3, 2022
2 parents 6fa24e6 + fa827b7 commit 44b5124
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/ppa.pp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@

$sources_list_d_filename = "${dash_filename_no_specialchars}-${release}.list"

if versioncmp($facts['os']['release']['full'], '15.10') >= 0 {
if versioncmp($facts['os']['release']['full'], '15.10') >= 0 and
versioncmp($facts['os']['release']['full'], '21.04') < 0 {
$trusted_gpg_d_filename = "${underscore_filename_no_specialchars}.gpg"
} else {
$trusted_gpg_d_filename = "${dash_filename_no_specialchars}.gpg"
Expand Down

0 comments on commit 44b5124

Please sign in to comment.