Skip to content

Commit

Permalink
Ignore source_without_rights as there is a default in the scope
Browse files Browse the repository at this point in the history
  • Loading branch information
raphink committed May 13, 2015
1 parent af0e30b commit 44dd50c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/lens.pp
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,13 @@
$lens_dest = "${augeas::lens_dir}/${name}.aug"
$test_dest = "${augeas::lens_dir}/tests/test_${name}.aug"

# lint:ignore:source_without_rights
file { $lens_dest:
ensure => $ensure,
source => $lens_source,
content => $lens_content,
}
# lint:endignore

exec { "Typecheck lens ${name}":
command => "augparse -I ${augeas::lens_dir} ${lens_dest} || (rm -f ${lens_dest} && exit 1)",
Expand All @@ -88,12 +90,14 @@
}

if $test_source or $test_content {
# lint:ignore:source_without_rights
file { $test_dest:
ensure => $ensure,
source => $test_source,
content => $test_content,
notify => Exec["Test lens ${name}"],
}
# lint:endignore

exec { "Test lens ${name}":
command => "augparse -I ${augeas::lens_dir} ${test_dest} || (rm -f ${lens_dest} && rm -f ${test_dest} && exit 1)",
Expand Down

0 comments on commit 44dd50c

Please sign in to comment.