Project

General

Profile

Bug #12965

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

Added by Ori Rabin over 3 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
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

Related to Foreman - Bug #8343: API resource_scope ignores optionsClosed2014-11-11

Associated revisions

Revision 3e4b2f77 (diff)
Added by Ori Rabin over 3 years ago

Fixes #12965 - provisioning/config templates are shown under OS API

Revision af6f2816 (diff)
Added by Ori Rabin over 3 years ago

Fixes #12965 - provisioning/config templates are shown under OS API

(cherry picked from commit 3e4b2f7732fd7dd94cdd48bb75181b483c3e678b)

History

#1 Updated by The Foreman Bot over 3 years ago

  • Status changed from Assigned to Ready For Testing
  • Assignee set to Ori Rabin
  • Pull request https://github.com/theforeman/foreman/pull/3016 added

#2 Updated by Dominic Cleal over 3 years ago

  • Legacy Backlogs Release (now unused) set to 104

#3 Updated by Dominic Cleal over 3 years ago

  • Related to Bug #8343: API resource_scope ignores options added

#4 Updated by Ori Rabin over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF