def domains_for_certname(config, certname):
 def update_domains_for_name_match(candidate_lineage, rv):
  'Return domains if certname matches, else return rv\n        '
  matching_domains = rv
  if (candidate_lineage.lineagename == certname):
   matching_domains = candidate_lineage.names()
  return matching_domains
 return _search_lineages(config, update_domains_for_name_match, None)

def domains_for_certname ( config , certname ) : def update_domains_for_name_match ( candidate_lineage , rv ) : matching_domains = rv if ( candidate_lineage . lineagename == certname ) : matching_domains = candidate_lineage . names ( ) return matching_domains return _search_lineages ( config , update_domains_for_name_match , None )
find the domains in the cert with name certname .