def _get_workspace_id(dfu, params):
    """
    Get the workspace ID from the params, which may either have 'workspace_id'
    or 'workspace_name'
    """
    if 'workspace_name' in params:
        return dfu.ws_name_to_id(params['workspace_name'])
    else:
        return params.get('workspace_id')