Skip to content

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

@agaget

Description

@agaget
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 "

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions