Skip to content

Commit

Permalink
Merge pull request #239 from drkp/master
Browse files Browse the repository at this point in the history
Fix repo validation regexps for Ubuntu 15.04/15.10 (#238)
  • Loading branch information
juniorsysadmin authored Jan 1, 2017
2 parents 6f18cf4 + 1738d15 commit 634231f
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 634231f

Please sign in to comment.