mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Remove object name validation.
This commit is contained in:
parent
b55fd5f67a
commit
a8059c68d0
7 changed files with 0 additions and 44 deletions
|
@ -139,8 +139,6 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
NAME_PATTERN = re.compile(r"^[a-zA-Z0-9][a-zA-Z0-9.-_]+[a-zA-Z0-9_]$")
|
||||
|
||||
|
||||
def subnet_to_dict(subnet):
|
||||
result = dict(
|
||||
|
@ -198,10 +196,6 @@ class AzureRMSubnet(AzureRMModuleBase):
|
|||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
|
||||
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 not CIDR_PATTERN.match(self.address_prefix_cidr):
|
||||
self.fail("Invalid address_prefix_cidr value {0}".format(self.address_prefix_cidr))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue