Project

General

Profile

« Previous | Next » 

Revision b079b71a

Added by Dominic Cleal about 8 years ago

fixes #13939 - call non-deprecated status method from API rabl

(cherry picked from commit ecc7b31f8eb48ffd055b739776f8de4f8824bbe4)

View differences:

app/views/api/v1/hosts/show.json.rabl
:comment, :disk, :installed_at, :model_id, :hostgroup_id, :owner_id, :owner_type,
:enabled, :puppet_ca_proxy_id, :managed, :use_image, :image_file, :uuid, :compute_resource_id,
:puppet_proxy_id, :certname, :image_id, :created_at, :updated_at,
:last_compile, :puppet_status, :root_pass
:last_compile, :root_pass
# to avoid deprecation warning on puppet_status method
attributes :configuration_status => :puppet_status
attribute :organization_id if SETTINGS[:organizations_enabled]
attribute :location_id if SETTINGS[:locations_enabled]

Also available in: Unified diff