Project

General

Profile

Actions

Bug #12965

closed

Error when trying to get operatingsystem's provisioning templates throuh api

Added by Ori Rabin over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The response is

"error": {
        "message": "wrong number of arguments (1 for 0)" 
    }

This is a result of the before filter find_optional_nested_object that tries to get the related operatingsystem.
It calls resource_name with the os name but provisioning_templates_controller redefines resource_name and doesn't expect an argument at all.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #8343: API resource_scope ignores optionsClosedShimon Shtein11/11/2014Actions
Actions

Also available in: Atom PDF