Remove object name validation.

This commit is contained in:
Chris Houseknecht 2016-07-06 17:29:42 -04:00 committed by Matt Clay
parent b55fd5f67a
commit a8059c68d0
7 changed files with 0 additions and 44 deletions

View file

@ -145,8 +145,6 @@ except ImportError:
pass
NAME_PATTERN = re.compile(r"^[a-zA-Z0-9]+[a-zA-Z0-9\._-]+[a-zA-Z0-9_]+$")
def virtual_network_to_dict(vnet):
'''
@ -228,10 +226,6 @@ class AzureRMVirtualNetwork(AzureRMModuleBase):
# Set default location
self.location = resource_group.location
if not NAME_PATTERN.match(self.name):
self.fail("Parameter error: name must begin with a letter or number, end with a letter, number "
"or underscore and may contain only letters, numbers, periods, underscores or hyphens.")
if self.state == 'present' and self.purge_address_prefixes:
for prefix in self.address_prefixes_cidr:
if not CIDR_PATTERN.match(prefix):