Permalink
Browse files

Use validate_re to check $augeas::lens_dir in augeas::lens

  • Loading branch information...
1 parent 0aa01df commit bcd9746bff9a54016077a93e359b66f1e104b926 @raphink raphink committed Mar 18, 2013
Showing with 4 additions and 0 deletions.
  1. +2 −0 .fixtures.yml
  2. +2 −0 manifests/lens.pp
View
@@ -1,3 +1,5 @@
fixtures:
+ repositories:
+ "stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git"
symlinks:
"augeas": "#{source_dir}"
View
@@ -35,6 +35,8 @@
if (!$stock_since or versioncmp($::augeasversion, $stock_since) < 0) {
+ validate_re($augeas::lens_dir, '/.*', '$augeas::lens_dir must be a valid path')
+
$lens_dest = "${augeas::lens_dir}/${name}.aug"
$test_dest = "${augeas::lens_dir}/tests/test_${name}.aug"

0 comments on commit bcd9746

Please sign in to comment.