for i in `find ./ -name *.yaml` ;do echo $i ; ruby -e "require 'yaml';
YAML.parse(File.open('$i'))" ;done
./extdata/modules/apache.yaml
/usr/lib/ruby/1.8/yaml.rb:176:in `load': syntax error on line 5, col 11: `'
(ArgumentError)

syntax error on line 5 is as far as the parser goes, the actual error might
be above that line though, like an open " ' " or something.

On Wed, May 15, 2013 at 8:16 PM, przemol <p....@cmcmarkets.com> wrote:

> Hi Den,
>
> I suspected that it was because yaml file. Thank you for the one liner but
> is it possible to
> display which line in the yaml file is the problem ?
>
>
> On Wednesday, May 15, 2013 6:29:45 AM UTC+1, denmat wrote:
>
>> Funny this should come up as I got the same error just today.
>>
>> Incorrect YAML file was the culprit. Error is non-descriptive though.
>>
>> This will help you find the file.
>> for i in `find ./ -name *.yaml` ;do echo $i ; ruby -e "require 'yaml';
>> YAML.parse(File.open('$i'))" ;done
>>
>> Cheers,
>> Den
>>
>>
>>
>>
>> On Tue, May 14, 2013 at 11:59 PM, przemol <p....@cmcmarkets.com> wrote:
>>
>>> I have included it in my first post:
>>>
>>> /etc/puppet/environments/env1/
>>> **manifests/site.pp
>>> node default {
>>>         hiera_include ( "classes", [] )
>>> }
>>>
>>>
>>> On Tuesday, May 14, 2013 2:45:02 PM UTC+1, denmat wrote:
>>>
>>>> What's on that line?
>>>>
>>>> On 14/05/2013, at 22:02, przemol <p....@cmcmarkets.com> wrote:
>>>>
>>>> etc/puppet/environments/env1/**m**anifests/site.pp:2 on
>>>>
>>>>  --
>>> 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 post to this group, send email to puppet...@googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/puppet-users?hl=en<http://groups.google.com/group/puppet-users?hl=en>
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>  --
> 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 post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to