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

@ -234,8 +234,6 @@ except ImportError:
pass
NAME_PATTERN = re.compile(r"^[a-z][a-z0-9-]{1,61}[a-z0-9]$")
def nic_to_dict(nic):
result = dict(
@ -349,10 +347,6 @@ class AzureRMNetworkInterface(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 or number "
"and contain at least one number.")
if self.state == 'present':
if self.virtual_network_name and not self.subnet_name:
self.fail("Parameter error: a subnet is required when passing a virtual_network_name.")