Skip to content

AVD 4.7.1 Banner #3951

Discussion options

You must be logged in to vote

I updated your issue with code blocks to make it easier to follow.

The issue here is YAML syntax. When you use the single quotes, you have to add double new-lines to produce a single new-line.

I would suggest the following:

banners:
  motd: |2-
    Multiline
    test with spaces on
       one line
    EOF
  • | means multiline input, where each new line is also a new line in the output.
  • 2 means the input is interpreted with 2 spaces as indentation, so any extra spaces are included in the output.
  • - means the final newline will be stripped (prevents an extra blank line after the EOF)

Please let me know if this works for you.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pradeeprgodhala
Comment options

Answer selected by ClausHolbechArista
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants