diff options
author | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2013-01-18 21:59:47 +0100 |
---|---|---|
committer | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2013-01-18 22:02:13 +0100 |
commit | 35f9a01879858fcbd0c93c1fd90ff71365a27d9b (patch) | |
tree | 8880452a76b1edc615cdacac77e05a5a5e7abbe1 /lib | |
parent | d568c4e0f7a6323cf462045159e8203b4715e196 (diff) | |
download | puppet-stdlib-35f9a01879858fcbd0c93c1fd90ff71365a27d9b.tar.gz puppet-stdlib-35f9a01879858fcbd0c93c1fd90ff71365a27d9b.tar.bz2 |
validate_augeas: requires augeas
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/parser/functions/validate_augeas.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/validate_augeas.rb b/lib/puppet/parser/functions/validate_augeas.rb index a407118..d66e340 100644 --- a/lib/puppet/parser/functions/validate_augeas.rb +++ b/lib/puppet/parser/functions/validate_augeas.rb @@ -28,6 +28,10 @@ module Puppet::Parser::Functions validate_augeas($sudoerscontent, 'Sudoers.lns', [], 'Failed to validate sudoers content with Augeas') ENDHEREDOC + unless Puppet.features.augeas? + raise Puppet::ParseError, ("validate_augeas(): requires the ruby augeas bindings") + end + if (args.length < 2) or (args.length > 4) then raise Puppet::ParseError, ("validate_augeas(): wrong number of arguments (#{args.length}; must be 2, 3, or 4)") end |