Using "label: {constant}" fails #1155
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
I'm trying to convert my multiple almost identical yaml files to use
constantsandinclude.Steps to reproduce
borgmatic.d/test.yaml is:
borgmatic/common.yaml has:
That fails with:
This works correctly, creating label "foo-test":
This fails too:
Actual behavior
No response
Expected behavior
label: {company}should work.Other notes / implementation ideas
No response
borgmatic version
2.0.8
borgmatic installation method
No response
Borg version
No response
Python version
No response
Database version (if applicable)
No response
Operating system and version
No response
Try changing this:
... to this:
In YAML, a value like
{company}without quotes will be interpreted as a mapping (with an empty value). However,labelrequires a plain string. That's why you're getting the error.Ah of course. Thank you.