def METHOD_NAME(self, name, namespace, updated_record):
    """
    :param name: name of the lock to be updated
    :param namespace: namespace the lock is in
    :param updated_record: the updated election record
    :return: True if update is successful False if it fails
    """
    try:
        # Set the updated record
        self.configmap_reference.metadata.annotations[self.leader_electionrecord_annotationkey] = json.dumps(self.get_lock_dict(updated_record))
        api_response = self.api_instance.replace_namespaced_config_map(name=name, namespace=namespace,
                                                                       body=self.configmap_reference)
        return True
    except ApiException as e:
        logging.info("Failed to update lock as {}".format(e))
        return False