From 1a3e277f95dc5a2157b89d099c1bf7772d1b2e18 Mon Sep 17 00:00:00 2001 From: chouseknecht Date: Fri, 3 Jun 2016 07:53:55 -0400 Subject: [PATCH] Fix 3857 name regex --- cloud/azure/azure_rm_virtualnetwork.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/azure/azure_rm_virtualnetwork.py b/cloud/azure/azure_rm_virtualnetwork.py index 9f1e7e61f23..d7bbdd00d85 100644 --- a/cloud/azure/azure_rm_virtualnetwork.py +++ b/cloud/azure/azure_rm_virtualnetwork.py @@ -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):