diff --git a/manifests/ppa.pp b/manifests/ppa.pp index 2a5b4a868d..b115f75390 100644 --- a/manifests/ppa.pp +++ b/manifests/ppa.pp @@ -40,7 +40,7 @@ } # Validate the resource name - if $name !~ /^ppa:([a-zA-Z0-9\-_.]+)\/([a-zA-z0-9\-_\.]+)$/ { + if $name !~ /^ppa:([a-zA-Z0-9\-_.]+)\/([a-zA-z0-9\-_\.\+]+)$/ { fail("Invalid PPA name: ${name}") } diff --git a/spec/defines/ppa_spec.rb b/spec/defines/ppa_spec.rb index 00424dccb7..4faea5792a 100644 --- a/spec/defines/ppa_spec.rb +++ b/spec/defines/ppa_spec.rb @@ -49,6 +49,7 @@ def ppa_exec_params(user, repo, distro = 'trusty', environment = []) 'ppa:foo/bar1.0', 'ppa:foo10/bar10', 'ppa:foo-/bar_', + 'ppa:foo-/bar+', ].each do |value| describe 'valid resource names' do let :facts do