Project

General

Profile

Actions

Bug #13939

closed

API v1 hosts rabl references deprecated puppet_status call

Added by Dominic Cleal over 8 years ago. Updated over 6 years ago.

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

Description

The API v1 hosts views use the puppet_status attribute, which is a deprecated getter from #10782, where only the v2 API was fixed to use the new version.

test/functional/api/v1/hosts_controller_test.rb prints:

DEPRECATION WARNING: You are using a deprecated behavior, it will be removed in version 1.13, Host#puppet_status has been deprecated, you should use configuration_status. (called from app_views_api_v_hosts_create_json_rabl__1200163205771380870_129174860 at /home/dcleal/code/foreman/foreman/app/views/api/v1/hosts/create.json.rabl:3)

Related issues 3 (0 open3 closed)

Related to Foreman - Feature #10782: Add global status for hostsClosedMarek Hulán06/11/2015Actions
Related to Foreman - Bug #13941: Core tests should not print API deprecation warningsClosedDominic Cleal02/29/2016Actions
Blocks Foreman - Refactor #13845: Remove 1.13 deprecationsClosedDominic Cleal02/23/2016Actions
Actions

Also available in: Atom PDF