mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
Remove object name validation.
This commit is contained in:
parent
b55fd5f67a
commit
a8059c68d0
7 changed files with 0 additions and 44 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue