src/cloud/dnsmgr/scripts/renew_certs_for_domain.py
def cert_fname_to_domain(fname):
    '''
    Converts a filename for a certificate to the domain that the cert
    satisfies.
    '''
    assert fname.startswith('_'), '{} must start with "_"'.format(fname)
    assert fname.find(
        '_', 1) == -1, '{} must not contain "_" other than in the first character'.format(fname)
    return fname.replace('_', '*')

    Converts a filename for a certificate to the domain that the cert
    satisfies.
    
Converts a filename for a certificate to the domain that the cert
satisfies.
Converts a filename for a certificate to the domain that the cert satisfies .
def cert_fname_to_domain(fname):
    assert fname.startswith('_'), '{} must start with "_"'.format(fname)
    assert fname.find(
        '_', 1) == -1, '{} must not contain "_" other than in the first character'.format(fname)
    return fname.replace('_', '*')
def cert_fname_to_domain ( fname ) : assert fname . startswith ( '_' ) , '{} must start with "_"' . format ( fname ) assert fname . find ( '_' , 1 ) == - 1 , '{} must not contain "_" other than in the first character' . format ( fname ) return fname . replace ( '_' , '*' )
Converts a filename for a certificate to the domain that the cert
satisfies.
Converts a filename for a certificate to the domain that the cert satisfies .
'''
    Converts a filename for a certificate to the domain that the cert
    satisfies.
    '''
fname