src/cloud/dnsmgr/scripts/renew_certs_for_domain.py
def renew_lego_cert(domain, out_dir, email, lego, num_tries):
    '''
    Function that wraps the lego cmd to renew the lego certificate.
    '''
    cmd = '{lego} --email="{email}" --domains="{domain}" ' \
        '--dns="gcloud" --path="{out_dir}" -k rsa4096 -a run'.format(
            lego=lego,
            email=email,
            domain=domain,
            out_dir=out_dir,
        )
    print('\n------')
    print('Running {}'.format(domain))
    return run_and_retry(cmd, num_tries)

    Function that wraps the lego cmd to renew the lego certificate.
    
Function that wraps the lego cmd to renew the lego certificate.
Function that wraps the lego cmd to renew the lego certificate .
def renew_lego_cert(domain, out_dir, email, lego, num_tries):
    cmd = '{lego} --email="{email}" --domains="{domain}" ' \
        '--dns="gcloud" --path="{out_dir}" -k rsa4096 -a run'.format(
            lego=lego,
            email=email,
            domain=domain,
            out_dir=out_dir,
        )
    print('\n------')
    print('Running {}'.format(domain))
    return run_and_retry(cmd, num_tries)
def renew_lego_cert ( domain , out_dir , email , lego , num_tries ) : cmd = '{lego} --email="{email}" --domains="{domain}" ' '--dns="gcloud" --path="{out_dir}" -k rsa4096 -a run' . format ( lego = lego , email = email , domain = domain , out_dir = out_dir , ) print ( '\n------' ) print ( 'Running {}' . format ( domain ) ) return run_and_retry ( cmd , num_tries )
Function that wraps the lego cmd to renew the lego certificate.
Function that wraps the lego cmd to renew the lego certificate .
'''
    Function that wraps the lego cmd to renew the lego certificate.
    '''
domain
out_dir
email
lego
num_tries