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

@ -210,9 +210,6 @@ except ImportError:
pass
NAME_PATTERN = re.compile(r"^(?!-)(?!.*--)[a-z0-9\-]+$")
class AzureRMStorageBlob(AzureRMModuleBase):
def __init__(self):
@ -270,11 +267,6 @@ class AzureRMStorageBlob(AzureRMModuleBase):
self.results['check_mode'] = self.check_mode
if not NAME_PATTERN.match(self.container):
self.fail("Parameter error: container_name must consist of lowercase letters, "
"numbers and hyphens. It must begin with a letter or number. It may "
"not contain two consecutive hyphens.")
# add file path validation
self.blob_client = self.get_blob_client(self.resource_group, self.storage_account_name)