conftypes: Check {} correctly in ShellCommand.
This commit is contained in:
parent
0766116424
commit
6011cc80ae
@ -921,7 +921,7 @@ class ShellCommand(String):
|
||||
else:
|
||||
raise ValidationError(value, "may not be empty!")
|
||||
super().validate(value)
|
||||
if self.placeholder and '{}' not in value:
|
||||
if self.placeholder and '{}' not in self.transform(value):
|
||||
raise ValidationError(value, "needs to contain a {}-placeholder.")
|
||||
|
||||
def transform(self, value):
|
||||
|
Loading…
Reference in New Issue
Block a user