Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
c6019f5
)
Updated regex after carefull reading of policy
author
Michiel Brandenburg
<apex@xepa.nl>
Wed, 11 Jan 2023 12:05:32 +0000
(13:05 +0100)
committer
Michiel Brandenburg
<apex@xepa.nl>
Wed, 11 Jan 2023 12:05:32 +0000
(13:05 +0100)
manifests/mark.pp
patch
|
blob
|
history
diff --git
a/manifests/mark.pp
b/manifests/mark.pp
index 8aeca121bd71560d1b4edbe95c465255f3540bd6..b2146b0a54a6cd906e691992e43c1bdc24e312b9 100644
(file)
--- a/
manifests/mark.pp
+++ b/
manifests/mark.pp
@@
-8,7
+8,7
@@
define apt::mark (
Enum['auto','manual','hold','unhold'] $setting,
) {
- if $title !~ /^[a-z0-9]
{2}[a-z0-9.+\-]*
$/ {
+ if $title !~ /^[a-z0-9]
[a-z0-9.+\-]+
$/ {
fail("Invalid package name: ${title}")
}