F5Networks / f5-bigip-runtime-init

Apache License 2.0
14 stars 15 forks source link

Issue with YAML validation (multilines value) #32

Closed amolari closed 3 years ago

amolari commented 3 years ago

I have the following piece of configuration in my /config/cloud/runtime-init-conf.yaml:

          mySSHD:
            class: SSHD
            banner: |

              WARNING
              This system is for the use of xxxxx authorized users only.
              If you are not authorized, leave this system immediately.

            inactivityTimeout: 300

    - extensionType: ts

I get the error

2021-10-26T17:31:44.195Z [17922]: error: Attempt to load YAML config failed: YAMLException: bad indentation of a mapping entry at line 191, column 13:
                inactivityTimeout: 300

It's validated correctly by various tools online as a valid YAML (for example https://yamlvalidator.com/ , which additionally can convert it to JSON successfully)

amolari commented 3 years ago

issue was on my side. closing, as working as expected