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

Updated by The Foreman Bot almost 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman-discovery/pull/26 added
Actions #2

Updated by The Foreman Bot almost 9 years ago

  • Pull request https://github.com/theforeman/foreman_discovery/pull/258 added
Actions #3

Updated by Ori Rabin almost 9 years ago

  • Pull request deleted (https://github.com/theforeman/foreman_discovery/pull/258)
Actions #4

Updated by Ori Rabin almost 9 years ago

  • Related to Feature #14208: Allows to list discovered hosts facts from the Api added
Actions #5

Updated by The Foreman Bot almost 9 years ago

  • Pull request https://github.com/theforeman/foreman_discovery/pull/258 added
Actions #6

Updated by Ori Rabin almost 9 years ago

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

Also available in: Atom PDF