Project

General

Profile

Actions

Refactor #17497

open

Refactor #find_resource to add blacklisted parameters

Added by Shimon Shtein almost 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Right now the first parameter that ends up with "_id" will be considered as a parent resource.

We need a way to blacklist some parameters so that they will not be considered as parents.

The code boils down to BaseController#parent_resource_details which iterates through all parameters passed to the request.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #16422: Foreman API throws ruby exception with ovirt network APIClosedJan-Otto Kröpke09/02/2016Actions
Actions

Also available in: Atom PDF