def tabulate_summary(certificates, kubeconfigs, etcd_certs, router_certs, registry_certs):
 items = ((((certificates + kubeconfigs) + etcd_certs) + router_certs) + registry_certs)
 summary_results = {'system_certificates': len(certificates), 'kubeconfig_certificates': len(kubeconfigs), 'etcd_certificates': len(etcd_certs), 'router_certs': len(router_certs), 'registry_certs': len(registry_certs), 'total': len(items), 'ok': 0, 'warning': 0, 'expired': 0}
 summary_results['expired'] = len([c for c in items if (c['health'] == 'expired')])
 summary_results['warning'] = len([c for c in items if (c['health'] == 'warning')])
 summary_results['ok'] = len([c for c in items if (c['health'] == 'ok')])
 return summary_results

def tabulate_summary ( certificates , kubeconfigs , etcd_certs , router_certs , registry_certs ) : items = ( ( ( ( certificates + kubeconfigs ) + etcd_certs ) + router_certs ) + registry_certs ) summary_results = { 'system_certificates' : len ( certificates ) , 'kubeconfig_certificates' : len ( kubeconfigs ) , 'etcd_certificates' : len ( etcd_certs ) , 'router_certs' : len ( router_certs ) , 'registry_certs' : len ( registry_certs ) , 'total' : len ( items ) , 'ok' : 0 , 'warning' : 0 , 'expired' : 0 } summary_results [ 'expired' ] = len ( [ c for c in items if ( c [ 'health' ] == 'expired' ) ] ) summary_results [ 'warning' ] = len ( [ c for c in items if ( c [ 'health' ] == 'warning' ) ] ) summary_results [ 'ok' ] = len ( [ c for c in items if ( c [ 'health' ] == 'ok' ) ] ) return summary_results
calculate the summary text for when the module finishes running .