(base, resource, *args)
return auto_name
Helper method to generate names automatically based on default.
Helper method to generate names automatically based on default.
Helper method to generate names automatically based on default .
def AutoName(base, resource, *args):
  """Helper method to generate names automatically based on default."""
  auto_name = '%s-%s' % (base, '-'.join(list(args) + [default.AKA[resource]]))
  if not RFC1035_RE.match(auto_name):
    raise Error('"%s" name for type %s does not match RFC1035 regex (%s)' %
                (auto_name, resource, RFC1035_RE.pattern))
  return auto_name
def AutoName ( base , resource , * args ) : auto_name = '%s-%s' % ( base , '-' . join ( list ( args ) + [ default . AKA [ resource ] ] ) ) if not RFC1035_RE . match ( auto_name ) : raise Error ( '"%s" name for type %s does not match RFC1035 regex (%s)' % ( auto_name , resource , RFC1035_RE . pattern ) ) return auto_name