|
32 | 32 | from pulp_container.app import models, fields |
33 | 33 | from pulp_container.constants import SIGNATURE_TYPE |
34 | 34 |
|
35 | | - |
36 | 35 | VALID_SIGNATURE_NAME_REGEX = r"^sha256:[0-9a-f]{64}@[0-9a-f]{32}$" |
37 | 36 | VALID_TAG_REGEX = r"^[A-Za-z0-9][A-Za-z0-9._-]*$" |
38 | 37 | VALID_BASE_PATH_REGEX_COMPILED = re.compile(r"^[a-z0-9]+(?:(?:[._]|__|[-]*)[a-z0-9])*$") |
@@ -285,25 +284,21 @@ class ContainerRemoteSerializer(RemoteSerializer): |
285 | 284 | child=serializers.CharField(max_length=255), |
286 | 285 | allow_null=True, |
287 | 286 | required=False, |
288 | | - help_text=_( |
289 | | - """ |
| 287 | + help_text=_(""" |
290 | 288 | A list of tags to include during sync. |
291 | 289 | Wildcards *, ? are recognized. |
292 | 290 | 'include_tags' is evaluated before 'exclude_tags'. |
293 | | - """ |
294 | | - ), |
| 291 | + """), |
295 | 292 | ) |
296 | 293 | exclude_tags = serializers.ListField( |
297 | 294 | child=serializers.CharField(max_length=255), |
298 | 295 | allow_null=True, |
299 | 296 | required=False, |
300 | | - help_text=_( |
301 | | - """ |
| 297 | + help_text=_(""" |
302 | 298 | A list of tags to exclude during sync. |
303 | 299 | Wildcards *, ? are recognized. |
304 | 300 | 'exclude_tags' is evaluated after 'include_tags'. |
305 | | - """ |
306 | | - ), |
| 301 | + """), |
307 | 302 | ) |
308 | 303 |
|
309 | 304 | policy = serializers.ChoiceField( |
@@ -343,25 +338,21 @@ class ContainerPullThroughRemoteSerializer(RemoteSerializer): |
343 | 338 | child=serializers.CharField(max_length=255), |
344 | 339 | allow_null=True, |
345 | 340 | required=False, |
346 | | - help_text=_( |
347 | | - """ |
| 341 | + help_text=_(""" |
348 | 342 | A list of remotes to include during pull-through caching. |
349 | 343 | Wildcards *, ? are recognized. |
350 | 344 | 'includes' is evaluated before 'excludes'. |
351 | | - """ |
352 | | - ), |
| 345 | + """), |
353 | 346 | ) |
354 | 347 | excludes = serializers.ListField( |
355 | 348 | child=serializers.CharField(max_length=255), |
356 | 349 | allow_null=True, |
357 | 350 | required=False, |
358 | | - help_text=_( |
359 | | - """ |
| 351 | + help_text=_(""" |
360 | 352 | A list of remotes to exclude during pull-through caching. |
361 | 353 | Wildcards *, ? are recognized. |
362 | 354 | 'excludes' is evaluated after 'includes'. |
363 | | - """ |
364 | | - ), |
| 355 | + """), |
365 | 356 | ) |
366 | 357 |
|
367 | 358 | class Meta: |
|
0 commit comments