From: Lukas Audzevicius Date: Tue, 30 Aug 2022 11:56:32 +0000 (+0100) Subject: (GH-1057) Regex fix to allow dotted resources X-Git-Tag: v9.0.1~7^2~1 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=5a2e5c099d8d9dcdca190342a0ab4adf1582f5ec;p=puppet-modules%2Fpuppetlabs-apt.git (GH-1057) Regex fix to allow dotted resources Prior to this commit, one of our recent module updates introduced a regex validation step for the resource names in our ppa.pp manifest which would raise an issue if a valid resource name contained a dot (.). This commit aims to slightly adjust the regex validation so that it allows for dotted resource names. This PR should fix issue #1057. --- diff --git a/manifests/ppa.pp b/manifests/ppa.pp index e3c53e8..7ea5c4c 100644 --- a/manifests/ppa.pp +++ b/manifests/ppa.pp @@ -40,7 +40,7 @@ define apt::ppa ( } # 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}") }