On 2013-19-09 13:48, robbyt wrote:
On Wednesday, September 18, 2013 3:15:18 PM UTC+3, Henrik Lindberg wrote:
Here are the possible alterantives:
arity 1: String key
arity 1: Hash options
arity 2: String key, String | Type type
arity 2: String key, Hash options
arity 3: String key, String | Type type, Object default_value
Regards
- henrik
Hi Henrik,
Yes, I think those options are reasonable.
In addition, I assume that we can still use a variable for all of the
arguments? e.g.,
$default_data = { type => 'Integer', default => 42 }
lookup('mykey', $default_data)
Sure, that will work without switching to future parser.
FYI - I am working on documentation, and have also documented a proposal
to fix the lookup function.
I work on the documents here - some will be documentation, some parts
probably will go into the ARM docs.
https://github.com/hlindberg/misc-puppet-docs
In particular, the Lookup is described in this document:
https://github.com/hlindberg/misc-puppet-docs/blob/master/improvements-arm-9.md
along with a bunch of other improvements.
Regards
- henrik
--
You received this message because you are subscribed to the Google
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.