Project

General

Profile

Actions

Bug #13965

closed

Output JSON|YAML broken when listing facts

Added by Lukas Zapletal almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer CLI
Fixed in Releases:
Found in Releases:

Description

Using --output json fails to return all of the facts about a discovered host.

$ hammer --output json discovery facts --id 116
{
  "Fact": "lib",
  "Value": "/usr/share/fdi/facts:/opt/extension/facts" 
}

When there is clearly more facts available...

$ hammer discovery facts --id 116
------------------------|---------------------------------------------------------------------------------
FACT                    | VALUE
------------------------|---------------------------------------------------------------------------------
lib                     | /usr/share/fdi/facts:/opt/extension/facts
os                      | {"name"=>"CentOS", "family"=>"RedHat", "release"=>{"major"=>"7", "minor"=>"1"...
facterversion           | 2.4.1
domain                  | deploy.local
ps                      | ps -ef
hardwaremodel           | x86_64

Also failing is --output yaml.

Coming from: https://github.com/theforeman/hammer-cli-foreman-discovery/issues/25


Related issues 1 (0 open1 closed)

Related to Discovery - Feature #14208: Allows to list discovered hosts facts from the ApiClosedOri Rabin03/15/2016Actions
Actions

Also available in: Atom PDF