-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The error:

undefined method `safeevaluate' for nil:NilClass at
/srv/home/thanos/test.pp:7 on node sys0.homenet

The code:

class foo {
  if $operatingsystem == "Fedora" {
    define bar {
       notify { "baz": message => "Testing" }
    }
  }
}

include "foo"

foo::bar { "test": }

The notes:

It seems to me that this would be handled during the pre-compile phase.
 What's even stranger is that it seemed to work for a while and then
didn't.  That may have been a side effect of the way the puppetmaster
seems to attempt to work around problems though.

Thanks,

Trevor

On 09/19/2009 04:56 AM, James Turnbull wrote:
> 
> Trevor Vaughan wrote:
>> Should I be able to put a define inside of an 'if' block?
> 
>> It doesn't seem to be working in 0.24.8.
> 
> 
> Show us the code and the error?
> 
> Regards
> 
> James Turnbull
> 

- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkq1fE8ACgkQyjMdFR1108DvWwCbBtOUwt5L9xEnjxq82wqXXOL1
MbEAn1mIOBdS7hB1aX1bmPg71+87RiMa
=6P2z
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to