Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Char :not accepted in the field name of the config if a macros is in it. #87

Open
agaget opened this issue Apr 3, 2024 · 1 comment

Comments

@agaget
Copy link

agaget commented Apr 3, 2024

config:
    type: "unit"
    name: " ${DEST} : BDM scenario destination OK "  # <------------------- this line
    prefix: "SL-MPS-BDM:MPS-EVR-01:"
    delay: 1.5

Got the following message

Schema validation failed:
 - Value '{'EIS.BB': 'BDM scenario destination OK'}' is not of type 'str'. Path: '/config/name'.
Mandatory validation failed:
 - `name` in `config` is supposed to be a string but got: {'EIS.BB': 'BDM scenario destination OK'}

If I remove the macro DEST or the : it doesn't failed.
So the following works well :
name: " EIS BB : BDM scenario destination OK "

name: " $(DEST) - BDM scenario destination OK "

@vnadot
Copy link
Contributor

vnadot commented Sep 6, 2024

I was going to open the same issue !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants