Skip to content

Commit d11099c

Browse files
authored
Merge pull request #1085 from puppetlabs/CONT-493-ppa_validation_fix
(CONT-493) PPA validation adjustment
2 parents fad371f + a14262b commit d11099c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifests/ppa.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141

4242
# Validate the resource name
43-
if $name !~ /^ppa:([a-zA-Z0-9\-_]+)\/([a-zA-z0-9\-_\.]+)$/ {
43+
if $name !~ /^ppa:([a-zA-Z0-9\-_.]+)\/([a-zA-z0-9\-_\.]+)$/ {
4444
fail("Invalid PPA name: ${name}")
4545
}
4646

spec/defines/ppa_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def ppa_exec_params(user, repo, distro = 'trusty', environment = [])
7878
[
7979
'ppa:foo!/bar',
8080
'ppa:foo/bar!',
81-
'ppa:foo1.0/bar',
81+
'ppa:foo1,0/bar',
8282
'ppa:foo/bar/foobar',
8383
'|| ls -la ||',
8484
'|| touch /tmp/foo.txt ||',

0 commit comments

Comments
 (0)