Mac 10.5 vs 10.6 with 0.25.2

6 views
Skip to first unread message

Roy Nielsen

unread,
Jan 12, 2010, 11:09:59 AM1/12/10
to puppet...@googlegroups.com
Hello,

I have an issue - My code works fine on a Mac OS X 10.5.8 box, but not
10.6.2:

52: if ( (($lanl_sav_version !~ /10.2/) and
($macosx_productversion =~ /10.4/)) or
53: (($lanl_sav_version != "10.2.3") and
($macosx_productversion =~ /10.5/)) or
54: (($lanl_sav_version != "10.2.3") and
($macosx_productversion =~ /10.6/)) ) {

On 10.6, I am getting the following error:

err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Cannot reassign variable 0 at
/var/puppet/environments/development/modules/lanl-baseline/manifests/classes/sav.pp:52
on node h09353by20h.lanl.gov

I'm guessing it has something to do with the !~ ?

Anyone have any ideas?

Thanks,
-Roy

Roy Nielsen

unread,
Jan 12, 2010, 11:16:21 AM1/12/10
to puppet...@googlegroups.com
Sorry, the version of puppet we're running is 0.25.1..

Also, we changed the code to:

52: if ( (($lanl_sav_version !~ /10.2/) and

($macosx_productversion_major == "10.4")) or


53: (($lanl_sav_version != "10.2.3") and

($macosx_productversion_major == "10.5")) or


54: (($lanl_sav_version != "10.2.3") and

($macosx_productversion_major == "10.6")) ) {

and it worked... Is there a problem with regex's in 0.25.1?

Regards,
-Roy

Reply all
Reply to author
Forward
0 new messages