Project

General

Profile

Bug #5425

'hammer host facts' returns 'No data'

Added by Adam Winberg over 6 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Foreman commands (obsolete)
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Command:
hammer host facts --id 999

returns:
'No data'

The same request via the api (i.e GET /api/v2/hosts/server.domain.com/facts) works.

(note that you cant use the hostname in the hammer command, see bug #5407. You must use hostid)

output from production.log:

Started GET "/api/hosts/988/facts" for 172.18.0.159 at 2014-04-24 10:18:48 +0000
Processing by Api::V2::FactValuesController#index as JSON
Parameters: {"apiv"=>"v2", "host_id"=>"988", "fact_value"=>{}}
Authorized user XXXXXXX
Rendered api/v2/fact_values/index.json.rabl within api/v2/layouts/index_layout (0.5ms)
Completed 200 OK in 128ms (Views: 14.5ms | ActiveRecord: 85.6ms)

History

#1 Updated by Tomáš Strachota about 5 years ago

  • Status changed from New to Closed

Fixed in hammer_cli_foreman 0.4.0, closing.

Also available in: Atom PDF