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 #1

Updated by The Foreman Bot over 8 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
Actions #2

Updated by Dominic Cleal over 8 years ago

  • translation missing: en.field_release set to 104
Actions #3

Updated by Dominic Cleal over 8 years ago

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

Updated by Ori Rabin over 8 years ago

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

Also available in: Atom PDF