def renewal_file_for_certname(config, certname):
 path = os.path.join(config.renewal_configs_dir, '{0}.conf'.format(certname))
 if (not os.path.exists(path)):
  raise errors.CertStorageError('No certificate found with name {0} (expected {1}).'.format(certname, path))
 return path

def renewal_file_for_certname ( config , certname ) : path = os . path . join ( config . renewal_configs_dir , '{0}.conf' . format ( certname ) ) if ( not os . path . exists ( path ) ) : raise errors . CertStorageError ( 'No certificate found with name {0} (expected {1}).' . format ( certname , path ) ) return path
return /path/to/certname .