def update_description(cert, description=None):
    """
    Update certificate description
    :param cert: Certificate object to be updated
    :param description: new description value
    :return: Updated certificate
    """
    if description is not None:
        cert.description = description
    return database.update(cert)

    Update certificate description
    :param cert: Certificate object to be updated
    :param description: new description value
    :return: Updated certificate
    
lemur/certificates/service.py