Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix regexp for $ensure params
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
key.pp
diff --git
a/manifests/key.pp
b/manifests/key.pp
index 8fbb47abd0b846aa9fd4ef47a6b46c60e73df1f4..914ec88ca4e92f1861899a76c33cd7938b6e76de 100644
(file)
--- a/
manifests/key.pp
+++ b/
manifests/key.pp
@@
-49,7
+49,7
@@
define apt::key (
}
validate_re($_id, ['\A(0x)?[0-9a-fA-F]{8}\Z', '\A(0x)?[0-9a-fA-F]{16}\Z', '\A(0x)?[0-9a-fA-F]{40}\Z'])
- validate_re($ensure, ['\A
absent|present
\Z',])
+ validate_re($ensure, ['\A
(absent|present)
\Z',])
if $_content {
validate_string($_content)