Thanks for R.I. Pienaar for the fix
Signed-off-by: James Turnbull <[email protected]>
---
lib/puppet/parser/functions/require.rb | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/puppet/parser/functions/require.rb
b/lib/puppet/parser/functions/require.rb
index 3a2032d..a110f53 100644
--- a/lib/puppet/parser/functions/require.rb
+++ b/lib/puppet/parser/functions/require.rb
@@ -27,6 +27,9 @@ Note that this function only works with clients 0.25 and
later, and it will
fail if used with earlier clients.
") do |vals|
+
+ Puppet::Parser::Functions.function(:include)
+
send(:function_include, vals)
if resource.metaparam_compatibility_mode?
warning "The 'require' function is only compatible with clients at
0.25 and above; including class but not adding dependency"
--
1.6.0.6
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---