Skip to content

Commit

Permalink
Fix repo validation regexps for Ubuntu 15.04/15.10 (voxpupuli#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
drkp committed Nov 8, 2016
1 parent fd8e4c1 commit 1738d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
validate_re($repo_url_suffix, '^0\.1[02]$', $suffix_error_msg)
}
elsif $::operatingsystemrelease =~ /^15\.04$/ {
validate_re($repo_url_suffix, '^(0\.1[02]|[45]\.x)x$', $suffix_error_msg)
validate_re($repo_url_suffix, '^(0\.1[02]|[45]\.x)$', $suffix_error_msg)
}
elsif $::operatingsystemrelease =~ /^15\.10$/ {
validate_re($repo_url_suffix, '^(0\.1[02]|[456]\.x)x$', $suffix_error_msg)
validate_re($repo_url_suffix, '^(0\.1[02]|[456]\.x)$', $suffix_error_msg)
}
elsif $::operatingsystemrelease =~ /^1[246]\.04$/ { #LTS
validate_re($repo_url_suffix, '^(0\.1[02]|[456]\.x)$', $suffix_error_msg)
Expand Down

0 comments on commit 1738d15

Please sign in to comment.