I don't see anything in that line that is incompatible with puppet 4's
parser. Perhaps previous lines that set the values of $enable_nfsd or
$local_nfsd are affected by the parser?



-Hunter

On Fri, Jan 22, 2016 at 11:30 AM, <rhpuppetu...@gmail.com> wrote:

> The values are defined and this class is working with puppet3 but showing
> error when i use parser=future. Any syntax errors/pup4 compatibility issue
> with this code ?
>
> On Friday, January 22, 2016 at 12:53:57 PM UTC-6, Trevor Vaughan wrote:
>>
>> From the error, I would say that not all of those values are defined at
>> that point and that's why you're seeing issues.
>>
>> You'll need to rewrite the statement to check if the variables are
>> defined.
>>
>> Trevor
>>
>> On Fri, Jan 22, 2016 at 12:38 PM, <rhpupp...@gmail.com> wrote:
>>
>>> I typed the code here. It's a typo here in the post. Still getting the
>>> error.
>>>
>>> On Friday, January 22, 2016 at 11:24:33 AM UTC-6, Trevor Vaughan wrote:
>>>>
>>>> If that's a copy/paste, then your second occurrence of enable_nfsd is
>>>> misspelled.
>>>>
>>>> Trevor
>>>>
>>>> On Fri, Jan 22, 2016 at 11:51 AM, <rhpupp...@gmail.com> wrote:
>>>>
>>>>> I'm planning to migrate puppet3.8 to 4.x, so testing the compatibility
>>>>> of code by using parser=future in puppet.conf file and was stuck at the
>>>>> following error when i run puppet agent. The error is pointing at the
>>>>> regular expression. Any help is appreciated.
>>>>>
>>>>> Code:
>>>>> ---------------
>>>>> if ($::enable_nfsd !~ /^false$/) and (($:: enable_nfsd =~ /^true$/) or
>>>>> ($::local_nfsd == "true"))
>>>>>
>>>>> ---------------
>>>>>
>>>>>
>>>>> Error 400 on server: Evaluation Error: left match operand must result
>>>>> in a string value. Got an undef value at *****.pp .
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Puppet Users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to puppet-users...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/puppet-users/abda8229-0c5a-417e-bebd-eefc2b545b50%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/puppet-users/abda8229-0c5a-417e-bebd-eefc2b545b50%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Trevor Vaughan
>>>> Vice President, Onyx Point, Inc
>>>> (410) 541-6699
>>>>
>>>> -- This account not approved for unencrypted proprietary information --
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Puppet Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to puppet-users...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/puppet-users/36c5a2a3-42ec-4bad-922d-ab04401475f0%40googlegroups.com
>>> <https://groups.google.com/d/msgid/puppet-users/36c5a2a3-42ec-4bad-922d-ab04401475f0%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Trevor Vaughan
>> Vice President, Onyx Point, Inc
>> (410) 541-6699
>>
>> -- This account not approved for unencrypted proprietary information --
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/5d728aac-a11e-4698-8d5f-3e5ef30239f7%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/5d728aac-a11e-4698-8d5f-3e5ef30239f7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

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

Reply via email to