We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b10821f commit 77bf9e4Copy full SHA for 77bf9e4
1 file changed
rootfs/api/models.py
@@ -94,21 +94,6 @@ def validate_reserved_names(value):
94
raise ValidationError('{} is a reserved name.'.format(value))
95
96
97
-def validate_comma_separated(value):
98
- """Error if the value doesn't look like a list of hostnames or IP addresses
99
- separated by commas.
100
- """
101
- if not re.search(r'^[a-zA-Z0-9-,\.]+$', value):
102
- raise ValidationError(
103
- "{} should be a comma-separated list".format(value))
104
-
105
106
-def validate_domain(value):
107
- """Error if the domain contains unexpected characters."""
108
- if not re.search(r'^[a-zA-Z0-9-\.]+$', value):
109
- raise ValidationError('"{}" contains unexpected characters'.format(value))
110
111
112
def validate_certificate(value):
113
try:
114
crypto.load_certificate(crypto.FILETYPE_PEM, value)
0 commit comments