(cluster, context=None)
Delete ca cert and magnum client cert from cluster

    :param cluster: The cluster which has certs
Delete ca cert and magnum client cert from cluster
Delete ca cert and magnum client cert from cluster
def delete_certificates_from_cluster(cluster, context=None):
    """Delete ca cert and magnum client cert from cluster

    :param cluster: The cluster which has certs
    """
    for cert_ref in ['ca_cert_ref', 'magnum_cert_ref']:
        try:
            cert_ref = getattr(cluster, cert_ref, None)
            if cert_ref:
                cert_manager.get_backend().CertManager.delete_cert(
                    cert_ref, resource_ref=cluster.uuid, context=context)
        except Exception:
            LOG.warning("Deleting certs is failed for Cluster %s",
                        cluster.uuid)
def delete_certificates_from_cluster ( cluster , context = None ) : for cert_ref in [ 'ca_cert_ref' , 'magnum_cert_ref' ] : try : cert_ref = getattr ( cluster , cert_ref , None ) if cert_ref : cert_manager . get_backend ( ) . CertManager . delete_cert ( cert_ref , resource_ref = cluster . uuid , context = context ) except Exception : LOG . warning ( "Deleting certs is failed for Cluster %s" , cluster . uuid )