#1192: "notify" should allow for "undef"
-------------------------+--------------------------------------------------
Reporter:  tim           |        Owner:  community 
    Type:  enhancement   |       Status:  new       
Priority:  normal        |    Component:  library   
 Version:  0.24.4        |     Severity:  normal    
Keywords:  notify undef  |        Stage:  Unreviewed
   Patch:  None          |   Complexity:  Unknown   
-------------------------+--------------------------------------------------
 I tried a definition like the following (leaving out the non-important
 bits):
 {{{
 define configfile(. . ., $notify = undef) {
         file { $name:
                 . . .
                 notify => $notify,
                 . . .
         }
 }
 }}}

 However, when I haven't given a notify in my usage of this definition, I
 get the error:

 ''err: Could not create /etc/phppgadmin/config.inc.php: Parameter notify
 failed: Relationships must be resource references at
 /srv/puppet/prod/common/manifests/functions.pp:24''

 ''warning: Not using cache on failed catalog''

 ''warning: Configuration could not be instantiated: Parameter notify
 failed: Relationships must be resource references at
 /srv/puppet/prod/common/manifests/functions.pp:24''

 Any tips on how to do this correctly? Or is this something that might need
 some enhancement?

-- 
Ticket URL: <http://reductivelabs.com/trac/puppet/ticket/1192>
puppet <http://reductivelabs.com>
Puppet - Portable System Automation
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to