Fix 3857 name regex

This commit is contained in:
chouseknecht 2016-06-03 07:53:55 -04:00
parent b774a60ac0
commit 1a3e277f95
No known key found for this signature in database
GPG key ID: 78F1698C5705A81B

View file

@ -145,7 +145,7 @@ except ImportError:
pass
NAME_PATTERN = re.compile(r"^[a-zA-Z0-9_]{1,61}[a-z0-9_]$")
NAME_PATTERN = re.compile(r"^[a-zA-Z0-9]+[a-zA-Z0-9\._-]+[a-zA-Z0-9_]+$")
def virtual_network_to_dict(vnet):