mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-14 21:19:12 -07:00
Remove object name validation.
This commit is contained in:
parent
b55fd5f67a
commit
a8059c68d0
7 changed files with 0 additions and 44 deletions
|
@ -338,8 +338,6 @@ except ImportError:
|
|||
# This is handled in azure_rm_common
|
||||
pass
|
||||
|
||||
NAME_PATTERN = re.compile(r"^[a-zA-Z0-9._-]+$")
|
||||
|
||||
|
||||
def validate_rule(rule, rule_type=None):
|
||||
'''
|
||||
|
@ -352,8 +350,6 @@ def validate_rule(rule, rule_type=None):
|
|||
|
||||
if not rule.get('name'):
|
||||
raise Exception("Rule name value is required.")
|
||||
if not NAME_PATTERN.match(rule.get('name')):
|
||||
raise Exception("Rule name must contain only word characters plus '.','-','_'")
|
||||
|
||||
priority = rule.get('priority', None)
|
||||
if not priority:
|
||||
|
@ -551,9 +547,6 @@ class AzureRMSecurityGroup(AzureRMModuleBase):
|
|||
# Set default location
|
||||
self.location = resource_group.location
|
||||
|
||||
if not NAME_PATTERN.match(self.name):
|
||||
self.fail("Parameter error: name must contain only word characters and '.','-','_'")
|
||||
|
||||
if self.rules:
|
||||
for rule in self.rules:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue