def _add_to_list(engine, script_type, script_name, **script_args):
    backend = _get_backend_from_engine(engine)
    if backend.check_script_exists(script_type, script_name):
        LOG.error('%s already exists, not registering', script_type)
        return False
    try:
        data = {
            script_name: script_args
        }
        backend.add_script(script_type, data)
        return True
    except __HOLE__:
        LOG.exception("No %s script called %s", script_type, script_name)
    except Exception:
        LOG.exception("Could not register %s script %s", script_type,
                      script_name)
        return False
dataset/ETHPy150Open openstack/entropy/entropy/__main__.py/_add_to_list