On Thu, Jul 24, 2014 at 6:04 PM, Henrik Lindberg <
henrik.lindb...@cloudsmith.com> wrote:

> On 2014-25-07 2:32, Andy Parker wrote:
>
>>
>>
>> DECISION SEVEN
>>
>>    undef is not allowed as a title
>>
>> Not much to say here. notify { undef: } fails (or anything that
>> evaluates to undef)
>>
>>
> DECISION SEVEN AND 3/4
>
> A title expression must result in a String value, or Array of String
> values. No regular expressions, hashes, booleans, numbers etc.
>
> No magic turning a title into a string if it is not.
>
>
I agree in principle, but am worried about the impact. Right now it is
somewhat common to do things like:

  # bad example but should illustrate the idea
  define hosts() {
    host { $title[hostname]: ip => $title[ip] }
  }

  hosts { [{ hostname => andy, ip => '192.168.12.3' },
              { hostname => henrik, ip => '192.168.12.4' }]: }

This ends up creating instances of Hosts with hashes as titles. Often this
works out fine...just not always.


>
>>
>> --
>> Andrew Parker
>> a...@puppetlabs.com <mailto:a...@puppetlabs.com>
>>
>> Freenode: zaphod42
>> Twitter: @aparker42
>> Software Developer
>>
>> *Join us at PuppetConf 2014 <http://www.puppetconf.com/>, September
>> 22-24 in San Francisco*
>> /Register by May 30th to take advantage of the Early Adopter discount
>> <http://links.puppetlabs.com/puppetconf-early-adopter> //—//save $349!/
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Puppet Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to puppet-dev+unsubscr...@googlegroups.com
>> <mailto:puppet-dev+unsubscr...@googlegroups.com>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/puppet-dev/CANhgQXu3HVrWJrTnMgYvbY6%
>> 3DR8B%3DvVgts2Uqmwjtj6eJRJsH7g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/puppet-dev/CANhgQXu3HVrWJrTnMgYvbY6%
>> 3DR8B%3DvVgts2Uqmwjtj6eJRJsH7g%40mail.gmail.com?utm_medium=
>> email&utm_source=footer>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
>
> Visit my Blog "Puppet on the Edge"
> http://puppet-on-the-edge.blogspot.se/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/puppet-dev/lqsaff%2438h%241%40ger.gmane.org.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Andrew Parker
a...@puppetlabs.com
Freenode: zaphod42
Twitter: @aparker42
Software Developer

*Join us at PuppetConf 2014 <http://www.puppetconf.com/>, September
22-24 in San Francisco*
*Register by May 30th to take advantage of the Early Adopter discount
<http://links.puppetlabs.com/puppetconf-early-adopter> **—**save $349!*

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CANhgQXskM00UyYyoHebNao-mKKVK_bhmkKrQ9rJV8LrdtxQC9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to