Solved: Malformed late-commands

Hi,
I need to run a late-command which always failed with a malformed error.
late-commands:
- echo 'Package: salt-*' | tee /target/etc/apt/preferences.d/salt-pin-1001

the issue is that there is a space behind the ‘:’ in ‘Package: salt’.
How can this be done correctly, without removing the space?

found the solution after some hours of trial and error
- "echo 'Package: salt-*' | tee /target/etc/apt/preferences.d/salt-pin-1001"

Double quotes around the whole command.