Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/argus/incident/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def validate_key(value):
key_value_re = _lazy_re_compile(r"^[a-z0-9_]+=.+?\Z")
key_value_validator = RegexValidator(
key_value_re,
message='Enter a valid key-value construct: "key=value", where key and value are strings.',
message=f'Enter a valid key-value construct: "key=value", where key and value are strings.'
f'The key can consist of lowercase letters, numbers and underscores.',
code="invalid",
)

Expand Down