Merge pull request #2366 from coreos-inc/alert-spam-fixes
Small fixes for alert spam
This commit is contained in:
commit
f7a7d30ec2
13 changed files with 87 additions and 25 deletions
|
@ -1,6 +1,8 @@
|
|||
import urllib
|
||||
import re
|
||||
|
||||
import anunidecode # Don't listen to pylint's lies. This import is required for unidecode below.
|
||||
|
||||
from uuid import uuid4
|
||||
|
||||
REPOSITORY_NAME_REGEX = re.compile(r'^[\.a-zA-Z0-9_-]+$')
|
||||
|
@ -23,6 +25,8 @@ def escape_tag(tag, default='latest'):
|
|||
|
||||
|
||||
def parse_namespace_repository(repository, library_namespace, include_tag=False):
|
||||
repository = repository.encode('unidecode', 'ignore')
|
||||
|
||||
parts = repository.rstrip('/').split('/', 1)
|
||||
if len(parts) < 2:
|
||||
namespace = library_namespace
|
||||
|
|
Reference in a new issue