Title: Message Title
garrett honeycutt commented on an issue
Puppet / New Feature PUP-1457
fail should be usable in a selector
It would be nice if this worked better:
<pre>
notify { "test":
    message => $environment ? {
        production => "http://blah/blah/prod",
        development => "http://blah/blah/dev",
        default => fail("environment '${environment}' is not yet supported"),
    }
}
</pre>

Desired result when the default branch of the selector is taken...

--
You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to