Exemple #1
0
 def assert_valid_resource_name(name):
     if not BaseDnsRecord.is_valid_resource_name(name):
         log.debug("InvalidNameException raised on %s", name, exc_info=True)
         raise InvalidNameException(
             u"Invalid object name: %s. Name must be fully qualified "
             u"(ending with a .) and match criteria defined "
             u"in: https://stackoverflow.com/q/10306690/10971151" % name)
Exemple #2
0
 def assert_valid_resource_name(name):
     if not BaseCloudResource.is_valid_resource_name(name):
         log.debug("InvalidLabelException raised on %s", name)
         raise InvalidNameException(
             u"Invalid name: %s. Name must be at least 3 characters long"
             " and at most 63 characters. It must consist of lowercase"
             " letters, numbers, or dashes. The name must not start or"
             " end with a dash." % name)