conftypes: Check {} correctly in ShellCommand.

This commit is contained in:
Florian Bruhin 2014-08-05 21:05:47 +02:00
parent 0766116424
commit 6011cc80ae

View File

@ -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):