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
|
@ -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.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue