Welcome to the Linux Foundation Forum!

wrong ident in redis.yaml in 6.3

gronauit Posts: 1
edited January 2018 in LFS258 Class Forum
The lines 8 and 9 have a wrong ident (imagePullPolicy: IfNotPresent
name: redis), should be same as the line above (image: redis:3.2). Don't copy paste this. I got an ugly error message: error: error converting YAML to JSON: yaml: line 7: mapping values are not allowed in this context


  • serewicz
    serewicz Posts: 1,000
    edited January 2018


    Thank you for the note. When you say 6.3, did you mean the lab exercise or the chapter content?  

    I think you meant wrong indent. For others, remember that YAML is whitespace specific. Often times when I get this error it's due to an issue with whitespace indentation, too many or few, compared to other lines. Unlike tabs which are easy to count with editors or even cat -vet,  it can be difficult to align rows which are far apart, to ensure the proper number of spaces have been used.

    I would encourage everyone to write as much YAML by hand, instead of copy-paste, as they go through lab exercises. For me it's easier to learn proper whitespace syntax when I have an example to follow instead of trying to figure it out when I'm generating new code. 



Upcoming Training